Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.05ms] Passed 4 tests
A check of server-side resources used by CNR Performance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.88 ▼2.55 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.18 ▼5.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.79 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.80 ▼15.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.76 ▼0.40 |
CNR Performance /wp-admin/options-general.php?page=cnr-performance-settings | 3.25 | 32.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- You have illegally modified 1 file (0.79KB) outside of "wp-content/plugins/cnr-performance/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CNR Performance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,769 ▲8 | 14.24 ▼0.38 | 1.72 ▲0.04 | 40.71 ▼2.03 |
Dashboard /wp-admin | 2,201 ▲21 | 5.57 ▼0.07 | 89.28 ▼10.03 | 41.25 ▼0.43 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▲0.02 | 38.40 ▲3.53 | 36.66 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.23 ▲0.19 | 683.67 ▲50.51 | 52.96 ▼5.62 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▲0.01 | 96.53 ▲1.49 | 45.13 ▲2.40 |
CNR Performance /wp-admin/options-general.php?page=cnr-performance-settings | 915 | 2.00 | 29.61 | 43.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=cnr-performance-settings
- > Notice in wp-content/plugins/cnr-performance/lib/panel.php+347
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cnr-performance/lib/panel.php:449
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cnr-performance/lib/core-wp.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cnr-performance/lib/compress-html.php:135
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cnr-performance/lib/panel.php:449
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% 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
2 plugin tags: security, performance
cnr-performance/cnr-performance.php 92% from 13 tests
The main PHP file in "CNR Performance" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin674 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 127 | 70 | 621 |
Sass | 1 | 5 | 0 | 28 |
CSS | 1 | 3 | 0 | 19 |
Ruby | 1 | 6 | 13 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 3 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin