Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.38ms] Passed 4 tests
Analyzing server-side resources used by NGINX Cache Optimizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.30 ▼3.84 |
Dashboard /wp-admin | 3.44 ▲0.09 | 51.40 ▼12.71 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.23 ▼4.71 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 97.42 ▼12.27 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.62 ▼2.03 |
Server storage [IO: ▲0.08MB] [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: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
nginxcacheoptimizer |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
NGINX Cache Optimizer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲65 | 14.37 ▼0.00 | 1.69 ▼0.63 | 41.84 ▼0.83 |
Dashboard /wp-admin | 2,224 ▲44 | 5.67 ▲0.02 | 84.98 ▼4.19 | 70.86 ▲20.85 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.98 ▲0.01 | 38.04 ▼3.74 | 35.44 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,546 ▲14 | 17.51 ▼5.59 | 689.80 ▲1.03 | 62.51 ▲9.92 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.19 ▼0.07 | 99.34 ▼13.34 | 79.74 ▲29.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- nginxcacheoptimizer
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/nginx-cache-optimizer/views/nginxcacheoptimizer.php:14
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: speed, nginx, caching, memcached, performance...
nginx-cache-optimizer/nginxcacheoptimizer.php 77% from 13 tests
The entry point to "NGINX Cache Optimizer" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nginx-cache-optimizer.php" instead of "nginxcacheoptimizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected894 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 186 | 661 | 644 |
JavaScript | 1 | 6 | 55 | 115 |
SVG | 6 | 0 | 4 | 76 |
CSS | 1 | 11 | 4 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 65 | |
▷ Static methods | 7 | 10.77% |
▷ Public methods | 56 | 86.15% |
▷ Protected methods | 6 | 9.23% |
▷ Private methods | 3 | 4.62% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin