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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.59ms] Passed 4 tests
Server-side resources used by CloudGuard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 37.30 ▼1.76 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.34 ▲1.36 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.83 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 84.21 ▼23.12 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.35 ▲1.45 |
CloudGuard /wp-admin/options-general.php?page=cloudguard | 3.30 | 32.26 |
Server storage [IO: ▲0.91MB] [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: 285 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by CloudGuard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.36 ▼0.01 | 1.71 ▲0.01 | 43.68 ▲3.98 |
Dashboard /wp-admin | 2,237 ▲57 | 5.65 ▲0.08 | 99.09 ▲9.16 | 43.68 ▲0.75 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▲0.02 | 34.14 ▼1.92 | 31.78 ▼4.29 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.58 ▲0.25 | 678.56 ▲68.99 | 63.27 ▲4.25 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▼0.02 | 95.01 ▼8.91 | 43.04 ▲0.50 |
CloudGuard /wp-admin/options-general.php?page=cloudguard | 851 | 2.14 | 30.05 | 29.28 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/cloudguard/uninstall.php:5
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: login, restrict, geolocation, country, ip...
cloudguard/cloudguard.php Passed 13 tests
"CloudGuard" version 1.4.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Restrict access to your login page using Cloudflare Geolocation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,300 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 0 | 4 | 2,373 |
PHP | 3 | 97 | 31 | 648 |
SVG | 3 | 2 | 3 | 208 |
CSS | 1 | 13 | 0 | 71 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
253 PNG files occupy 0.19MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/flags/mh.png | 0.68KB | 0.70KB | 0.00% |
assets/flags/sh.png | 3.92KB | 0.58KB | ▼ 85.16% |
assets/flags/tv.png | 0.59KB | 0.53KB | ▼ 9.82% |
assets/flags/ck.png | 0.62KB | 0.58KB | ▼ 5.24% |
assets/flags/et.png | 0.55KB | 0.54KB | ▼ 1.94% |