Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.76MB] [CPU: ▼177.14ms] Passed 4 tests
This is a short check of server-side resources used by Asynchronous Javascript
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 31.48 ▼7.35 |
Dashboard /wp-admin | 2.89 ▼0.16 | 24.12 ▼20.32 |
Posts /wp-admin/edit.php | 2.89 ▼0.21 | 22.61 ▼25.07 |
Add New Post /wp-admin/post-new.php | 2.89 ▼2.54 | 20.58 ▼646.86 |
Media Library /wp-admin/upload.php | 2.89 ▼0.11 | 20.41 ▼16.29 |
Settings /wp-admin/admin.php?page=asyncjs&tab=0 | 2.89 | 23.66 |
/wp-admin/admin.php?page=asyncjs | 2.89 | 24.91 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 424 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Asynchronous Javascript
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲116 | 15.94 ▲0.42 | 10.78 ▲1.47 | 49.25 ▼2.67 |
Dashboard /wp-admin | 2,994 ▲60 | 5.88 ▼0.05 | 154.58 ▲2.86 | 137.14 ▲13.67 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 2.71 ▲0.02 | 63.58 ▼8.76 | 92.20 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,625 ▼58 | 18.81 ▲0.03 | 381.48 ▼2.95 | 110.84 ▼1.20 |
Media Library /wp-admin/upload.php | 1,782 ▼28 | 5.01 ▼0.01 | 140.72 ▼9.28 | 133.83 ▲10.90 |
Settings /wp-admin/admin.php?page=asyncjs&tab=0 | 1,207 | 2.51 | 64.78 | 96.72 |
/wp-admin/admin.php?page=asyncjs | 1,204 | 2.38 | 67.30 | 93.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/asynchronous-javascript/lib/nhp/options/options.php+227
Function create_function() is deprecated
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=asyncjs
- > Deprecated in wp-content/plugins/asynchronous-javascript/lib/nhp/options/options.php+238
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=asyncjs
- > Notice in wp-content/plugins/asynchronous-javascript/lib/nhp/options/options.php+641
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/pages_select/field_pages_select.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/validation/url/validation_url.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/validation/str_replace/validation_str_replace.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/radio/field_radio.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/google_webfonts/field_google_webfonts.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/select_hide_below/field_select_hide_below.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/validation/email/validation_email.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/validation/js/validation_js.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/cats_multi_select/field_cats_multi_select.php:2
- > PHP Fatal error
Uncaught Error: Class 'NHP_Options' not found in wp-content/plugins/asynchronous-javascript/lib/nhp/options/fields/text/field_text.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: performance, async, headjs, javascript, asynchronous...
asynchronous-javascript/asynchronous-javascript.php Passed 13 tests
The principal PHP file in "Asynchronous Javascript" v. 1.3.5 is loaded by WordPress automatically on each request
80 characters long description:
Improve page load performance by asynchronously loading javascript using head.js
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,294 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 993 | 966 | 2,152 |
CSS | 2 | 103 | 168 | 901 |
JavaScript | 11 | 70 | 25 | 217 |
Markdown | 1 | 10 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 5 | 4.10% |
▷ Public methods | 122 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
360 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/nhp/options/img/glyphicons/glyphicons_338_forrst.png | 0.27KB | 0.29KB | 0.00% |
lib/nhp/options/img/glyphicons/glyphicons_008_film.png | 0.12KB | 0.12KB | 0.00% |
lib/nhp/options/img/glyphicons/glyphicons_212_down_arrow.png | 0.18KB | 0.20KB | 0.00% |
lib/nhp/options/img/glyphicons/glyphicons_181_download_alt.png | 0.19KB | 0.22KB | 0.00% |
lib/nhp/options/img/glyphicons/glyphicons_087_log_book.png | 0.21KB | 0.24KB | 0.00% |