Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.21ms] Passed 4 tests
This is a short check of server-side resources used by Gator Cache
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.97 ▲1.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 53.51 ▼5.26 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.77 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.24 ▼16.40 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.09 ▲2.58 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Gator Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.58 ▲0.31 | 9.97 ▲5.47 | 46.02 ▲6.31 |
Dashboard /wp-admin | 2,238 ▲32 | 5.86 ▼0.03 | 100.32 ▼4.13 | 40.38 ▼3.19 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.06 ▲0.05 | 36.23 ▼2.32 | 32.92 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.58 ▲0.41 | 666.18 ▼14.18 | 51.64 ▼5.23 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.24 ▲0.06 | 96.36 ▼7.43 | 46.35 ▼0.06 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/gator-cache/lib/Config/Lite.php+21
parse_ini_file(gc-config.ini.php): failed to open stream: No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gator-cache/gator-cache.php:731
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: optimize, multisite, performance, woocommerce, bbpress...
gator-cache/gator-cache.php Passed 13 tests
The principal PHP file in "Gator Cache" v. 2.1.8 is loaded by WordPress automatically on each request
78 characters long description:
A Better, Stronger, Faster WordPress Cache Plugin. Easy to install and manage.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,643 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 685 | 2,397 | 5,165 |
JavaScript | 6 | 100 | 25 | 1,075 |
CSS | 3 | 10 | 14 | 403 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 57.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 325 | |
▷ Static methods | 110 | 33.85% |
▷ Public methods | 277 | 85.23% |
▷ Protected methods | 46 | 14.15% |
▷ Private methods | 2 | 0.62% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 1 | 4.00% |
▷ Class constants | 24 | 96.00% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in 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 |
css/chosen-sprite.png | 0.63KB | 0.88KB | 0.00% |
css/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |