Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.00ms] Passed 4 tests
Analyzing server-side resources used by Nginx Cache Controller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.00 ▲1.21 |
Dashboard /wp-admin | 3.35 ▲0.04 | 51.78 ▼7.14 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.61 ▲3.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 111.92 ▲21.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.65 ▲2.56 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_nginxchampuru |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
nginxchampuru-db_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Nginx Cache Controller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲25 | 13.29 ▲0.13 | 1.81 ▲0.04 | 43.20 ▼5.15 |
Dashboard /wp-admin | 2,214 ▲8 | 5.80 ▲0.92 | 106.95 ▼5.45 | 42.20 ▼0.16 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.05 ▲0.02 | 40.08 ▲4.42 | 35.65 ▲1.88 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.45 ▲0.01 | 636.21 ▼169.53 | 47.90 ▼14.59 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.19 ▼0.05 | 100.99 ▼1.01 | 44.38 ▼2.01 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- nginxchampuru-db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nginx-champuru/includes/admin_panel.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/nginx-champuru/includes/wp-cli.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nginx-champuru/nginx-champuru.php:80
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/nginx-champuru/nginx-champuru.php on line 76
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% 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
3 plugin tags: cache, reverse proxy, nginx
nginx-champuru/nginx-champuru.php 92% from 13 tests
Analyzing the main PHP file in "Nginx Cache Controller" version 3.3.4
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,719 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 185 | 54 | 1,172 |
JavaScript | 4 | 46 | 45 | 225 |
PO File | 2 | 60 | 76 | 142 |
CSS | 3 | 4 | 13 | 77 |
Sass | 1 | 12 | 0 | 70 |
JSON | 1 | 0 | 0 | 22 |
SVG | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 4 | 5.26% |
▷ Public methods | 58 | 76.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 23.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/amimoto.png | 16.27KB | 8.03KB | ▼ 50.64% |