Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/sucuri-scanner/src/option.lib.php+225
file_put_contents(wp-content/uploads/sucuri/sucuri-settings.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲1.14MB] [CPU: ▼10.80ms] 75% from 4 tests
This is a short check of server-side resources used by Sucuri Security - Auditing, Malware Scanner and Security Hardening
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,054.88ms on /wp-admin/admin.php?page=sucuriscan_lastlogins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.86 | 48.81 ▲9.46 |
Dashboard /wp-admin | 5.16 ▲1.86 | 53.00 ▲3.60 |
Posts /wp-admin/edit.php | 5.21 ▲1.85 | 54.40 ▲3.06 |
Add New Post /wp-admin/post-new.php | 4.95 ▼0.94 | 47.80 ▼59.31 |
Media Library /wp-admin/upload.php | 5.02 ▲1.79 | 49.59 ▲13.10 |
Firewall (WAF) /wp-admin/admin.php?page=sucuriscan_firewall | 5.09 | 46.87 |
Dashboard /wp-admin/admin.php?page=sucuriscan | 5.06 | 46.29 |
Settings /wp-admin/admin.php?page=sucuriscan_settings | 5.98 | 123.79 |
Last Logins /wp-admin/admin.php?page=sucuriscan_lastlogins | 5.11 | 1,054.88 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 173 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Sucuri Security - Auditing, Malware Scanner and Security Hardening: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲118 | 13.19 ▼1.21 | 2.33 ▲0.34 | 38.70 ▼2.28 |
Dashboard /wp-admin | 2,258 ▲70 | 5.87 ▲0.98 | 99.50 ▼4.85 | 39.86 ▼3.79 |
Posts /wp-admin/edit.php | 2,144 ▲52 | 2.04 ▼0.00 | 35.77 ▼4.07 | 34.03 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.45 ▲5.95 | 590.16 ▼104.36 | 48.20 ▼9.26 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.23 ▼0.06 | 102.25 ▼13.90 | 44.45 ▼4.07 |
Firewall (WAF) /wp-admin/admin.php?page=sucuriscan_firewall | 1,698 | 2.13 | 44.35 | 109.46 |
Dashboard /wp-admin/admin.php?page=sucuriscan | 2,002 | 2.00 | 40.76 | 52.73 |
Settings /wp-admin/admin.php?page=sucuriscan_settings | 7,395 | 2.03 | 54.48 | 93.56 |
Last Logins /wp-admin/admin.php?page=sucuriscan_lastlogins | 1,412 | 1.83 | 28.92 | 54.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/sucuri-scanner/src/fileinfo.lib.php+383
rmdir(wp-content/uploads/sucuri): Directory not empty
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
sucuri-scanner/sucuri.php 85% from 13 tests
The main PHP file in "Sucuri Security - Auditing, Malware Scanner and Security Hardening" ver. 1.8.39 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 387 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("sucuri-scanner.php" instead of "sucuri.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin10,587 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 2,080 | 4,837 | 9,104 |
CSS | 2 | 15 | 1 | 1,363 |
JavaScript | 1 | 34 | 5 | 120 |
HTML | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 39.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 323 | |
▷ Static methods | 291 | 90.09% |
▷ Public methods | 276 | 85.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 47 | 14.55% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/checkwarn.png | 1.73KB | 1.82KB | 0.00% |
inc/images/checkcross.png | 1.56KB | 1.64KB | 0.00% |
inc/images/flags.sprite.png | 73.56KB | 25.70KB | ▼ 65.06% |
inc/images/checknotice.png | 1.72KB | 1.81KB | 0.00% |
inc/images/mainlogo.png | 8.18KB | 7.57KB | ▼ 7.49% |