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.00MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by Ajax loader + Cache
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.37 ▼0.92 |
Dashboard /wp-admin | 3.32 ▼0.03 | 42.68 ▼13.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.80 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.08 ▼2.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.25 ▼4.19 |
Ajax Loader /wp-admin/tools.php?page=wp-js-loader-bymdz | 3.56 | 51.03 |
Server storage [IO: ▲0.43MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
wpjsloadbymdz_empty_onDeactivate |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
wpjsloadbymdz_redirect_onActivate |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ajax loader + Cache
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲22 | 14.27 ▼0.07 | 1.83 ▲0.02 | 44.72 ▲4.59 |
Dashboard /wp-admin | 2,199 ▲18 | 5.60 ▼0.12 | 91.20 ▼11.04 | 42.35 ▲3.45 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.05 | 39.73 ▲0.47 | 35.63 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.52 ▲0.24 | 634.76 ▼142.65 | 57.48 ▲5.01 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.04 | 93.66 ▼15.84 | 40.37 ▼4.70 |
Ajax Loader /wp-admin/tools.php?page=wp-js-loader-bymdz | 1,758 | 2.06 | 25.38 | 78.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- wpjsloadbymdz_empty_onDeactivate
- widget_theysaidso_widget
- wpjsloadbymdz_redirect_onActivate
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ajax-loader-cache/ajax-loader-bymdez.php
- > /wp-content/plugins/ajax-loader-cache/admin/admin-ajax.php
- > /wp-content/plugins/ajax-loader-cache/admin/settings-pagehtml.php
- > /wp-content/plugins/ajax-loader-cache/admin/class-admin.php
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: website full ajax load cache
ajax-loader-cache/ajax-loader-bymdez.php 85% from 13 tests
The primary PHP file in "Ajax loader + Cache" version 1.3.85 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ajax-loader-cache.php" instead of "ajax-loader-bymdez.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,062 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 292 | 59 | 781 |
PO File | 1 | 150 | 174 | 515 |
JavaScript | 3 | 178 | 27 | 399 |
CSS | 1 | 78 | 4 | 350 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/help/plg-12.png | 8.91KB | 4.55KB | ▼ 48.94% |
admin/assets/help/plg-6.png | 17.58KB | 9.84KB | ▼ 44.00% |
admin/assets/help/plg-4.png | 42.53KB | 11.84KB | ▼ 72.17% |
admin/assets/help/plg-8.png | 9.18KB | 5.51KB | ▼ 39.94% |
admin/assets/help/plg-3.png | 19.48KB | 6.06KB | ▼ 68.90% |