Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.15ms] Passed 4 tests
This is a short check of server-side resources used by Async JavaScript
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.26 ▼1.08 |
Dashboard /wp-admin | 3.43 ▲0.12 | 50.84 ▼7.88 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.32 ▼1.47 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 97.27 ▼2.17 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 41.76 ▲5.32 |
Async JavaScript /wp-admin/options-general.php?page=async-javascript | 3.38 | 36.57 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 19 new options
New WordPress options |
---|
aj_autoptimize_method |
aj_defer |
aj_exclusions |
aj_async |
aj_enabled |
aj_autoptimize_enabled |
aj_jquery |
aj_method |
widget_recent-comments |
aj_enabled_logged |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Async JavaScript
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲154 | 13.29 ▼1.46 | 1.84 ▲0.01 | 43.03 ▼1.71 |
Dashboard /wp-admin | 2,284 ▲96 | 4.90 ▼0.99 | 103.01 ▲0.19 | 46.17 ▲0.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 35.80 ▼1.95 | 34.20 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.11 ▲5.64 | 671.82 ▲18.68 | 50.22 ▼10.17 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.24 ▲0.04 | 102.53 ▼2.94 | 46.49 ▲1.77 |
Async JavaScript /wp-admin/options-general.php?page=async-javascript | 1,162 | 2.55 | 33.04 | 47.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 19 options in the database
- widget_recent-comments
- aj_version
- aj_async
- aj_exclusions
- aj_jquery
- aj_defer
- aj_enabled_shop
- db_upgraded
- aj_enabled_logged
- widget_theysaidso_widget
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: pagespeed, javascript, render blocking, performance, async
async-javascript/async-javascript.php 92% from 13 tests
The main file in "Async JavaScript" v. 2.21.08.31 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,453 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 215 | 27 | 2,936 |
PHP | 11 | 154 | 366 | 1,971 |
CSS | 4 | 75 | 33 | 539 |
HTML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 47.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 9 | 20.00% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 2 | 4.44% |
▷ Private methods | 2 | 4.44% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |