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
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼4.92ms] Passed 4 tests
A check of server-side resources used by Malcure Security Suite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 49.85 ▲13.95 |
Dashboard /wp-admin | 3.73 ▲0.39 | 48.95 ▼10.08 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 45.00 ▼1.55 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 84.30 ▼5.82 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 35.29 ▼2.22 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Malcure Security Suite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲122 | 14.14 ▼0.22 | 1.91 ▲0.00 | 42.19 ▲0.90 |
Dashboard /wp-admin | 2,287 ▲112 | 5.55 ▼0.16 | 86.04 ▼18.91 | 72.06 ▲27.93 |
Posts /wp-admin/edit.php | 2,207 ▲107 | 1.99 ▲0.05 | 36.07 ▼4.31 | 32.72 ▲3.74 |
Add New Post /wp-admin/post-new.php | 1,630 ▲104 | 23.06 ▼0.08 | 694.81 ▼15.42 | 64.06 ▲9.68 |
Media Library /wp-admin/upload.php | 1,507 ▲107 | 4.18 ▼0.00 | 99.23 ▼13.62 | 68.92 ▲22.93 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (screenshot-1.png)
malcure-security-suite/malcure_security_suite.php 92% from 13 tests
The principal PHP file in "Malcure Security Suite" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("malcure-security-suite.php" instead of "malcure_security_suite.php")
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 plugin4,655 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 425 | 939 | 3,657 |
Sass | 1 | 116 | 9 | 578 |
CSS | 4 | 5 | 32 | 257 |
SVG | 2 | 4 | 4 | 163 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 86.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 196.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 4 | 66.67% |
Methods | 196 | |
▷ Static methods | 62 | 31.63% |
▷ Public methods | 190 | 96.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 3.06% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.35MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 353.46KB | 92.63KB | ▼ 73.79% |