Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼16.46ms] Passed 4 tests
This is a short check of server-side resources used by Cache Sniper for Nginx
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.34 ▼8.24 |
Dashboard /wp-admin | 3.32 ▼0.03 | 33.73 ▼31.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 39.97 ▼4.31 |
Add New Post /wp-admin/post-new.php | 5.58 ▼0.32 | 79.88 ▼22.12 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 32.67 ▼4.16 |
Nginx Cache Sniper /wp-admin/tools.php?page=cache-sniper-nginx | 3.30 | 31.35 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Cache Sniper for Nginx: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.37 ▲0.21 | 1.78 ▲0.18 | 41.10 ▼2.95 |
Dashboard /wp-admin | 2,218 ▲41 | 5.64 ▲0.12 | 91.47 ▼2.06 | 35.79 ▼5.01 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.06 | 39.53 ▲3.37 | 36.14 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,711 | 26.02 ▲2.94 | 941.78 ▲199.58 | 53.94 ▲0.17 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.18 ▲0.01 | 99.88 ▼55.60 | 42.53 ▼18.74 |
Nginx Cache Sniper /wp-admin/tools.php?page=cache-sniper-nginx | 919 | 2.02 | 22.51 | 33.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=cache-sniper-nginx
- > Warning in wp-admin/includes/file.php+2197
fopen(/var/lib/nginx/temp-write-test-652c528ba3a5f4-80424409): failed to open stream: No such file or directory
- > GET request to /wp-admin/tools.php?page=cache-sniper-nginx
- > Warning in wp-admin/includes/file.php+2197
fopen(/var/lib/nginx/cache/8/7c/temp-write-test-652c528ba3cee2-27112399): failed to open stream: No such file or directory
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/snipe-nginx-cache/cache-sniper-nginx.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/snipe-nginx-cache/includes/cache-sniper-nginx-comments.php:3
- > PHP Fatal error
Trait 'CSNX_Common_Utils' not found in wp-content/plugins/snipe-nginx-cache/includes/render_helper.php on line 3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
snipe-nginx-cache/cache-sniper-nginx.php 92% from 13 tests
The main PHP file in "Cache Sniper for Nginx" ver. 1.0.4.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("snipe-nginx-cache.php" instead of "cache-sniper-nginx.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin528 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 85 | 131 | 467 |
JavaScript | 1 | 5 | 0 | 61 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin