Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.08ms] Passed 4 tests
A check of server-side resources used by Ajax Custom CSS/JS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.78 ▼5.99 |
Dashboard /wp-admin | 3.49 ▲0.19 | 51.01 ▼0.40 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 55.34 ▼1.02 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 100.68 ▼0.90 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 46.16 ▲12.48 |
Ajax Custom CSS /wp-admin/admin.php?page=hsacc | 3.38 | 34.99 |
Add Ajax JS /wp-admin/admin.php?page=hsaddaccjs | 3.38 | 37.51 |
Add Ajax CSS /wp-admin/admin.php?page=hsaddacc | 3.38 | 34.16 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 96 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_awesomecustom |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
hsawesome_db_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Custom CSS/JS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲216 | 13.88 ▼0.80 | 1.80 ▲0.00 | 44.56 ▲4.89 |
Dashboard /wp-admin | 2,368 ▲183 | 5.46 ▼0.42 | 108.96 ▼1.48 | 49.52 ▲4.98 |
Posts /wp-admin/edit.php | 2,252 ▲163 | 2.46 ▲0.42 | 43.59 ▲1.56 | 36.67 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,824 ▲294 | 23.08 ▼0.16 | 691.45 ▲110.16 | 32.17 ▼19.96 |
Media Library /wp-admin/upload.php | 1,548 ▲160 | 4.75 ▲0.57 | 111.95 ▲13.42 | 51.34 ▲7.19 |
Ajax Custom CSS /wp-admin/admin.php?page=hsacc | 1,004 | 2.19 | 32.42 | 39.83 |
Add Ajax JS /wp-admin/admin.php?page=hsaddaccjs | 1,413 | 2.51 | 41.70 | 38.63 |
Add Ajax CSS /wp-admin/admin.php?page=hsaddacc | 1,413 | 2.48 | 38.73 | 33.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_awesomecustom
- Zombie WordPress options were found after uninstall: 7 options
- hsawesome_db_version
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hsaddacc
- > Network (severe)
wp-content/plugins/ajax-awesome-css/includes/admin/codemirror/addon/jshint/jshint.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hsaddacc
- > Network (severe)
wp-content/plugins/ajax-awesome-css/includes/admin/codemirror/addon/jshint/jsonlint.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hsaddacc
- > Network (severe)
selectthemejs/?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hsaddacc
- > Network (severe)
selecttheme/?ver=6.3.1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=hsaddaccjs
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=hsaddaccjs 318:51 Uncaught TypeError: Cannot read properties of null (reading 'value')
- > GET request to /wp-admin/admin.php?page=hsaddacc
- > Javascript (severe) in unknown
/wp-content/plugins/ajax-awesome-css/includes/admin/codemirror/lib/codemirror.js?ver=6.3.1 5951:29 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: custom css, custom javascript, js editor, ajax, jss...
ajax-awesome-css/ajax-awesome-css.php 92% from 13 tests
The principal PHP file in "Ajax Custom CSS/JS" v. 2.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 205 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin14,693 lines of code in 89 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 1,351 | 1,115 | 11,473 |
CSS | 50 | 342 | 239 | 1,955 |
PHP | 3 | 45 | 24 | 646 |
HTML | 7 | 115 | 0 | 619 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 32.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 5.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 21 | |
▷ Static methods | 3 | 14.29% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/images/support-us.png | 15.67KB | 5.80KB | ▼ 62.98% |
includes/admin/images/icon.png | 0.71KB | 0.48KB | ▼ 32.88% |