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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.72ms] Passed 4 tests
This is a short check of server-side resources used by MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.26 ▼1.72 |
Dashboard /wp-admin | 3.41 ▲0.11 | 50.07 ▼0.98 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.31 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.13 ▼13.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.62 ▲1.86 |
Malcare /wp-admin/admin.php?page=bv_account_details | 3.27 | 33.70 |
Malcare /wp-admin/admin.php?page=bv_add_account | 3.27 | 37.80 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲76 | 14.33 ▼0.01 | 1.74 ▼0.05 | 39.58 ▼3.60 |
Dashboard /wp-admin | 2,228 ▲54 | 5.56 ▼0.09 | 99.48 ▲1.20 | 86.10 ▲43.19 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 1.98 ▲0.02 | 38.80 ▲0.08 | 33.55 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 23.13 ▼0.22 | 714.60 ▲95.24 | 50.73 ▲1.73 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.16 ▼0.07 | 97.38 ▲1.49 | 71.97 ▲28.62 |
Malcare /wp-admin/admin.php?page=bv_account_details | 1,080 | 2.01 | 24.44 | 107.79 |
Malcare /wp-admin/admin.php?page=bv_add_account | 1,222 | 2.00 | 25.04 | 52.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/malcare-security/maintenance/template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/malcare-security/admin/components/footer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/malcare-security/admin/components/header_top.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/malcare-security/admin/dashboard.php:2
- > PHP Fatal error
Uncaught Error: Class 'MCAccount' not found in wp-content/plugins/malcare-security/admin/components/list_accounts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/malcare-security/admin/components/form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/malcare-security/admin/components/mc_testimony.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/malcare-security/admin/components/features_list.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/malcare-security/admin/components/header_top.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/malcare-security/admin/components/header_top.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- License uri: Please fix this invalid url: "[http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)"
malcare-security/malcare.php 85% from 13 tests
Analyzing the main PHP file in "MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall" version 5.42
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("malcare-security.php" instead of "malcare.php")
- Plugin Name: Please don't use more than 70 characters for the plugin name (currently 79 characters long)
Code Analysis Passed 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 plugin11,056 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,814 | 118 | 10,955 |
SVG | 2 | 0 | 1 | 99 |
CSS | 2 | 0 | 6 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 32.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 5 | |
Classes | 51 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 51 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 815 | |
▷ Static methods | 76 | 9.33% |
▷ Public methods | 608 | 74.60% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 207 | 25.40% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 3 | 2.44% |
▷ Class constants | 120 | 97.56% |
▷ Public constants | 120 | 100.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
10 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/astra.png | 4.31KB | 2.53KB | ▼ 41.33% |
img/play-video.png | 0.81KB | 0.50KB | ▼ 38.25% |
img/mc-features-list.png | 29.50KB | 11.51KB | ▼ 61.00% |
img/cw_icon.png | 0.29KB | 0.35KB | 0.00% |
img/malcare-wordpress-security.png | 15.65KB | 1.55KB | ▼ 90.08% |