Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲8.97ms] Passed 4 tests
An overview of server-side resources used by Performance Cache - PROISP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 52.93 ▲10.92 |
Dashboard /wp-admin | 3.84 ▲0.54 | 66.67 ▲13.42 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 52.28 ▼0.26 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 158.11 ▲53.76 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.27 ▲11.79 |
Server storage [IO: ▲0.39MB] [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: 38 new files
Database: no new tables, 13 new options
New WordPress options |
---|
proisp_varnish_caching_cookie |
widget_theysaidso_widget |
proisp_varnish_caching_ttl |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
proisp_varnish_caching_homepage_ttl |
proisp_varnish_caching_enable |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Performance Cache - PROISP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲120 | 13.34 ▼1.30 | 1.87 ▲0.03 | 46.01 ▼2.20 |
Dashboard /wp-admin | 2,261 ▲73 | 4.85 ▼0.03 | 118.52 ▲5.77 | 47.19 ▲1.83 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 1.97 ▲0.01 | 39.52 ▼1.46 | 35.98 ▼2.51 |
Add New Post /wp-admin/post-new.php | 1,552 ▲33 | 23.37 ▲0.16 | 708.90 ▲42.29 | 54.94 ▼6.28 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.21 ▲0.00 | 118.70 ▲12.30 | 54.58 ▲8.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- can_compress_scripts
- proisp_varnish_caching_cookie
- proisp_varnish_caching_ips
- db_upgraded
- widget_theysaidso_widget
- proisp_varnish_caching_enable
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- proisp_varnish_caching_debug
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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PROISP_VCaching' not found in wp-content/plugins/proisp-vcache/proisp-addons/proisp-inc.php:8
- > PHP Fatal error
Uncaught Error: Class 'PROISP_VCaching_Config' not found in wp-content/plugins/proisp-vcache/proisp-addons/templates/cache-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/proisp-vcache/vcaching.php:66
- > PHP Fatal error
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: proisp-vcache, performance cache, purge, performance cache proisp, varnish...
proisp-vcache/vcaching.php 85% from 13 tests
The main PHP file in "Performance Cache - PROISP" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("proisp-vcache.php" instead of "vcaching.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin2,916 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 258 | 334 | 1,413 |
CSS | 2 | 36 | 29 | 1,085 |
JavaScript | 6 | 35 | 14 | 354 |
SVG | 6 | 0 | 1 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 72.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 4.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 77 | |
▷ Static methods | 1 | 1.30% |
▷ Public methods | 68 | 88.31% |
▷ Protected methods | 4 | 5.19% |
▷ Private methods | 5 | 6.49% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 1.33KB | 1.31KB | ▼ 1.68% |