Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼2.44ms] Passed 4 tests
An overview of server-side resources used by Nginx Helper
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 51.76 ▲10.46 |
Dashboard /wp-admin | 3.66 ▲0.36 | 50.77 ▼1.33 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 51.31 ▼1.05 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 89.82 ▼13.40 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 42.10 ▲6.02 |
Nginx Helper /wp-admin/options-general.php?page=nginx | 3.64 | 35.94 |
Server storage [IO: ▲0.59MB] [DB: ▲0.15MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Nginx Helper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.38 ▲0.20 | 1.73 ▼0.08 | 43.59 ▲0.63 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.07 | 92.12 ▲4.41 | 42.26 ▼5.11 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.02 | 40.82 ▲4.57 | 36.25 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.14 ▲5.43 | 675.44 ▼1.60 | 57.81 ▲2.98 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▼0.10 | 102.47 ▲2.03 | 43.99 ▲0.38 |
Nginx Helper /wp-admin/options-general.php?page=nginx | 1,646 | 1.80 | 31.03 | 31.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.15MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nginx-helper/admin/partials/nginx-helper-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Class 'Purger' not found in wp-content/plugins/nginx-helper/admin/class-phpredis-purger.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/nginx-helper/admin/partials/nginx-helper-support-options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/nginx-helper/admin/partials/nginx-helper-sidebar-display.php:13
- > PHP Fatal error
Uncaught Error: Call to a member function nginx_helper_settings() on null in wp-content/plugins/nginx-helper/admin/partials/nginx-helper-general-options.php:76
- > PHP Fatal error
Uncaught Error: Class 'Purger' not found in wp-content/plugins/nginx-helper/admin/class-predis-purger.php:15
- > PHP Fatal error
Uncaught Error: Class 'Purger' not found in wp-content/plugins/nginx-helper/admin/class-fastcgi-purger.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
nginx-helper/nginx-helper.php Passed 13 tests
The main file in "Nginx Helper" v. 2.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does few more things.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected10,774 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 2,666 | 6,879 | 10,171 |
PO File | 1 | 144 | 173 | 301 |
CSS | 2 | 11 | 23 | 120 |
JSON | 2 | 0 | 0 | 62 |
JavaScript | 1 | 21 | 46 | 50 |
XML | 1 | 11 | 16 | 39 |
YAML | 1 | 4 | 2 | 16 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 25 | |
Traits | 0 | |
Classes | 243 | |
▷ Abstract classes | 11 | 4.53% |
▷ Concrete classes | 232 | 95.47% |
▷ Final classes | 1 | 0.43% |
Methods | 936 | |
▷ Static methods | 25 | 2.67% |
▷ Public methods | 720 | 76.92% |
▷ Protected methods | 170 | 18.16% |
▷ Private methods | 46 | 4.91% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 28 | |
▷ Global constants | 8 | 28.57% |
▷ Class constants | 20 | 71.43% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icons/nginx-icon-32x32.png | 3.85KB | 1.26KB | ▼ 67.29% |