Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼10.55ms] Passed 4 tests
A check of server-side resources used by Guard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 49.51 ▲5.76 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.77 ▼26.10 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 53.55 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 93.74 ▼23.22 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.82 ▲5.93 |
Guard /wp-admin/options-general.php?page=guard | 3.25 | 37.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/guard/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Guard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲127 | 13.96 ▼0.31 | 5.82 ▲3.98 | 42.93 ▲0.33 |
Dashboard /wp-admin | 2,222 ▲16 | 5.84 ▲0.76 | 97.07 ▼5.65 | 39.38 ▼1.32 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▲0.01 | 39.00 ▼0.07 | 35.37 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,557 ▲15 | 23.16 ▼0.07 | 664.73 ▼17.72 | 58.69 ▲1.75 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.23 ▼0.05 | 110.04 ▼0.55 | 46.82 ▼0.48 |
Guard /wp-admin/options-general.php?page=guard | 844 | 2.08 | 29.87 | 26.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
guard/guard.php 85% from 13 tests
"Guard" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: Use only dashes and lowercase characters for the domain path ("")
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
There were no executable files found in this plugin293 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 58 | 29 | 293 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 18 | 94.74% |
▷ Anonymous functions | 1 | 5.26% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected