Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼6.93ms] Passed 4 tests
An overview of server-side resources used by Cloudflare
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 42.96 ▲4.30 |
Dashboard /wp-admin | 3.76 ▲0.46 | 48.99 ▼3.91 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 45.51 ▼10.07 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 84.62 ▼16.27 |
Media Library /wp-admin/upload.php | 3.69 ▲0.45 | 38.82 ▲2.53 |
Cloudflare /wp-admin/options-general.php?page=cloudflare | 3.66 | 35.94 |
Server storage [IO: ▲7.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 222 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Cloudflare: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.18 | 1.75 ▲0.08 | 43.85 ▲2.14 |
Dashboard /wp-admin | 2,210 ▲21 | 5.86 ▲0.94 | 100.01 ▼21.30 | 39.30 ▼7.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 32.88 ▼9.76 | 32.27 ▼2.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.36 ▲0.11 | 674.48 ▼7.56 | 55.98 ▼3.82 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.26 ▲0.05 | 97.26 ▼1.64 | 40.88 ▼2.73 |
Cloudflare /wp-admin/options-general.php?page=cloudflare | 1,128 | 6.09 | 157.10 | 36.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cloudflare/src/Test/API/DefaultHttpClientTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/cloudflare/src/Integration/DefaultLogger.php:9
- > PHP Fatal error
Uncaught Error: Class 'CF\\API\\Client' not found in wp-content/plugins/cloudflare/src/API/Plugin.php:7
- > PHP Warning
require(wp-content/plugins/cloudflare/vendor/cloudflare/cf-ip-rewrite/tests/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/cloudflare/vendor/cloudflare/cf-ip-rewrite/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cloudflare/src/Test/API/ClientTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cloudflare/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'CF\\API\\AbstractPluginActions' not found in wp-content/plugins/cloudflare/src/WordPress/PluginActions.php:13
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/cloudflare/vendor/cloudflare/cf-ip-rewrite/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/cloudflare/vendor/cloudflare/cf-ip-rewrite/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'CF\\API\\AbstractAPIClient' not found in wp-content/plugins/cloudflare/src/API/Client.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/cloudflare/src/Test/Router/RequestRouterTest.php:15
- > 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 issues were found
Optimizations
Plugin configuration 97% 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:
- Screenshots: Please describe screenshot #1 in cloudflare/assets to your readme.txt
cloudflare/cloudflare.php Passed 13 tests
This is the main PHP file of "Cloudflare" version 4.12.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Cloudflare speeds up and protects your WordPress site.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin25,896 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 108 | 1,559 | 1,906 | 23,108 |
JavaScript | 9 | 0 | 45 | 843 |
SVG | 20 | 11 | 4 | 685 |
JSON | 8 | 0 | 0 | 606 |
CSS | 3 | 33 | 44 | 456 |
Markdown | 7 | 96 | 0 | 185 |
XML | 1 | 2 | 0 | 13 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 9 | |
Traits | 2 | |
Classes | 72 | |
▷ Abstract classes | 5 | 6.94% |
▷ Concrete classes | 67 | 93.06% |
▷ Final classes | 4 | 5.97% |
Methods | 458 | |
▷ Static methods | 55 | 12.01% |
▷ Public methods | 427 | 93.23% |
▷ Protected methods | 4 | 0.87% |
▷ Private methods | 27 | 5.90% |
Functions | 28 | |
▷ Named functions | 20 | 71.43% |
▷ Anonymous functions | 8 | 28.57% |
Constants | 201 | |
▷ Global constants | 80 | 39.80% |
▷ Class constants | 121 | 60.20% |
▷ Public constants | 121 | 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
17 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/insight.png | 5.21KB | 3.77KB | ▼ 27.67% |
assets/modal-two-factor-auth_2x.png | 16.99KB | 10.32KB | ▼ 39.28% |
assets/select2-cf.png | 0.88KB | 0.91KB | 0.00% |
assets/hero-bg-clouds.png | 3.02KB | 2.96KB | ▼ 1.97% |
assets/icons-seee324dde5.png | 6.93KB | 3.56KB | ▼ 48.63% |