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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.80ms] Passed 4 tests
Server-side resources used by IP Blacklist for Cloudflare
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.15 | 45.12 ▼3.09 |
Dashboard /wp-admin | 3.73 ▲0.10 | 53.95 ▼14.48 |
Posts /wp-admin/edit.php | 3.78 ▲0.10 | 52.11 ▲3.10 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.10 | 90.70 ▼12.73 |
Media Library /wp-admin/upload.php | 3.59 ▲0.10 | 45.90 ▲8.98 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IP Blacklist for Cloudflare
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.28 ▼0.09 | 1.88 ▲0.06 | 47.27 ▲1.98 |
Dashboard /wp-admin | 2,210 ▲39 | 5.71 ▲0.02 | 85.43 ▼10.11 | 76.91 ▲33.49 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▼0.07 | 39.19 ▲4.10 | 34.98 ▼6.44 |
Add New Post /wp-admin/post-new.php | 1,692 ▲161 | 22.50 ▼0.74 | 707.83 ▲62.44 | 64.11 ▲11.93 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.16 ▼0.06 | 107.96 ▲6.10 | 46.36 ▲3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ip-blacklist-cloudflare/classes/CloudflareAPIController.php
- > /wp-content/plugins/ip-blacklist-cloudflare/classes/SiteSettings.php
- > /wp-content/plugins/ip-blacklist-cloudflare/classes/Plugin.php
- > /wp-content/plugins/ip-blacklist-cloudflare/classes/Helpers.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ip-blacklist-cloudflare/ip-blacklist-for-cloudflare.php:13
- > PHP Fatal error
Uncaught Error: Class 'CFIP_SiteSettings' not found in wp-content/plugins/ip-blacklist-cloudflare/views/SiteSettingsView.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: passwords, brute force, username, profile, security...
ip-blacklist-cloudflare/ip-blacklist-for-cloudflare.php 92% from 13 tests
The entry point to "IP Blacklist for Cloudflare" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ip-blacklist-cloudflare.php" instead of "ip-blacklist-for-cloudflare.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin866 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 133 | 309 | 691 |
JavaScript | 1 | 23 | 11 | 113 |
CSS | 1 | 5 | 1 | 62 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 24.25 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
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 |
assets/media/cf-facebook-card.png | 1.30KB | 0.44KB | ▼ 65.84% |