Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-cerber/cerber-load.php+6069
Constant CRB_DOING_UPGRADE already defined
Server metrics [RAM: ▲4.34MB] [CPU: ▼115.68ms] Passed 4 tests
Analyzing server-side resources used by WP Cerber Security, Anti-spam & Malware Scan
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.04 ▲3.20 | 73.44 ▲43.20 |
Dashboard /wp-admin | 7.79 ▲4.73 | 69.17 ▲25.99 |
Posts /wp-admin/edit.php | 7.88 ▲4.77 | 68.92 ▲34.69 |
Add New Post /wp-admin/post-new.php | 10.17 ▲4.73 | 99.24 ▼549.57 |
Media Library /wp-admin/upload.php | 7.73 ▲4.73 | 52.16 ▲26.16 |
Tools /wp-admin/admin.php?page=cerber-tools | 7.72 | 62.13 |
Dashboard /wp-admin/admin.php?page=cerber-security | 7.74 | 73.70 |
Cerber.Hub /wp-admin/admin.php?page=cerber-nexus | 7.72 | 51.30 |
Site Integrity /wp-admin/admin.php?page=cerber-integrity | 7.72 | 60.42 |
Traffic Inspector /wp-admin/admin.php?page=cerber-traffic | 7.76 | 65.45 |
Anti-spam /wp-admin/admin.php?page=cerber-recaptcha | 7.73 | 55.11 |
User Policies /wp-admin/admin.php?page=cerber-users | 7.83 | 57.11 |
Server storage [IO: ▲5.22MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 374 new files
Database: 12 new tables, no new options
New tables |
---|
wp_cerber_files |
cerber_acl |
cerber_countries |
cerber_qmem |
cerber_log |
cerber_traffic |
cerber_blocks |
cerber_lab_net |
wp_cerber_uss |
cerber_lab |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Cerber Security, Anti-spam & Malware Scan
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,959 ▲333 | 16.34 ▲0.64 | 5.36 ▲0.05 | 102.85 ▲26.61 |
Dashboard /wp-admin | 3,221 ▲325 | 6.56 ▲0.40 | 119.61 ▼17.24 | 140.82 ▼43.82 |
Posts /wp-admin/edit.php | 2,782 ▲39 | 3.30 ▲0.06 | 66.94 ▲3.06 | 126.24 ▼14.01 |
Add New Post /wp-admin/post-new.php | 1,734 ▼2,001 | 20.60 ▲2.57 | 394.42 ▼53.09 | 160.01 ▼8.27 |
Media Library /wp-admin/upload.php | 1,830 ▲78 | 5.86 ▲0.33 | 130.00 ▼24.99 | 157.13 ▼31.97 |
Tools /wp-admin/admin.php?page=cerber-tools | 1,427 | 3.15 | 63.41 | 180.64 |
Dashboard /wp-admin/admin.php?page=cerber-security | 1,541 | 3.25 | 69.32 | 127.78 |
Cerber.Hub /wp-admin/admin.php?page=cerber-nexus | 1,152 | 3.11 | 56.84 | 113.27 |
Site Integrity /wp-admin/admin.php?page=cerber-integrity | 1,750 | 3.23 | 66.85 | 137.70 |
Traffic Inspector /wp-admin/admin.php?page=cerber-traffic | 2,086 | 3.52 | 69.23 | 133.13 |
Anti-spam /wp-admin/admin.php?page=cerber-recaptcha | 1,557 | 3.12 | 61.36 | 154.57 |
User Policies /wp-admin/admin.php?page=cerber-users | 2,772 | 3.36 | 64.77 | 133.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cerber/admin/cerber-users.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cerber/cerber-addons.php:52
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-cerber/cerber-maintenance.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cerber/admin/cerber-admin.php:36
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-cerber/cerber-maintenance.php on line 34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-cerber/cerber-scanner.php:106
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/wp-cerber/cerber-maintenance.php on line 34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-cerber/wp-cerber.php 92% from 13 tests
The entry point to "WP Cerber Security, Anti-spam & Malware Scan" version 8.9.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 339 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin67,065 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 21 | 16,563 | 17,432 | 33,903 |
PHP | 26 | 7,155 | 5,165 | 27,942 |
CSS | 10 | 648 | 292 | 3,719 |
JavaScript | 11 | 378 | 210 | 1,423 |
SVG | 1 | 0 | 0 | 61 |
Markdown | 1 | 4 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 38.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 8 | 44.44% |
Methods | 152 | |
▷ Static methods | 100 | 65.79% |
▷ Public methods | 125 | 82.24% |
▷ Protected methods | 2 | 1.32% |
▷ Private methods | 25 | 16.45% |
Functions | 960 | |
▷ Named functions | 774 | 80.62% |
▷ Anonymous functions | 186 | 19.38% |
Constants | 165 | |
▷ Global constants | 13 | 7.88% |
▷ Class constants | 152 | 92.12% |
▷ Public constants | 152 | 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
263 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/flags/ck.png | 0.36KB | 0.36KB | 0.00% |
assets/flags/eg.png | 0.21KB | 0.22KB | 0.00% |
assets/flags/nl.png | 0.10KB | 0.10KB | 0.00% |
assets/inspector.png | 23.45KB | 11.88KB | ▼ 49.35% |
assets/flags/tk.png | 0.29KB | 0.29KB | ▼ 0.66% |