What is WARI?

WARI scans your web application and examines dependencies between JavaScript functions, CSS styles, HTML tags and images.

The goal is to find unused images as well as unused and duplicated JavaScript functions and CSS styles.

If you have any questions/comments, please contact WARI's author.


FAQ

What are WARI's system requirements?
WARI is written in Java and it requires Java 1.6 or above version to be installed.

Does it mean WARI works only with Java projects?
No, WARI can be used to examine web applications written in .NET, PHP or any other language. Static resource files are language independent. All web-based technologies are using CSS, JS and HTML files.

How precise is WARI?
Because of dynamic nature of JavaScript, WARI cannot guarantee that all results are 100% correct. JavaScript functions can be dynamically created and called. WARI is not analyzing these dynamic code structures.

Can WARI detect JavaScript calls from server (e.g. over AJAX)?
No, WARI is inspecting only static textual files where CSS, JS and HTML are defined. Any server side code (Java, .NET, etc.) is not being inspected.

I found one case that WARI is not working properly
Great! Please help us to improve WARI by sending us that case. We will include it in the next release.

How fast is WARI?
That depends on complexity and size of your web application. Make sure to exclude all third party javascript and css libraries you use in the Settings menu. By excluding files such as JQuery you can reduce WARI's processing time. You are probably not interested if JQuery has duplicated functions or not, so it's better to exclude it. In the Settings menu just type part of library's filename. E.g. if JQuery's file name is jquery-min-1.3.1.js, it is enough to enter just jquery-min and that file will be excluded.

Can I just delete all duplicated and unused files that WARI reported?
WARI gives you a hint of what might be unused or duplicated. It's up to you to check and delete those findings only if you are absolutely sure you don't need them.
Don't blame me later. :)."


Author

WARI's creator is Nemanja Kostic.

Thanks for playing with WARI!

 
Download

Get the latest WARI version 1.2:
(release date - 13 December 2009)

wari.zip

Zip file contains executable jar file (just double click on it) and a settings file. Both files must be in the same folder.