Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/mcstatus/widget.php+45
Declaration of MCstatus_Widget::widget(array $args, array $instance) should be compatible with WP_Widget::widget($args, $instance)
Server metrics [RAM: ▼1.82MB] [CPU: ▼194.23ms] Passed 4 tests
A check of server-side resources used by MCstatus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 7.57 ▼17.81 |
Dashboard /wp-admin | 1.83 ▼1.23 | 5.54 ▼50.44 |
Posts /wp-admin/edit.php | 1.83 ▼1.28 | 5.83 ▼43.37 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 7.67 ▼648.85 |
Media Library /wp-admin/upload.php | 1.83 ▼1.18 | 5.42 ▼34.27 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_mcstatus |
Browser metrics Passed 4 tests
MCstatus: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.84 ▲0.17 | 10.16 ▲0.11 | 54.89 ▲2.71 |
Dashboard /wp-admin | 2,967 ▲36 | 5.96 ▼0.10 | 158.43 ▼3.78 | 115.36 ▼8.18 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 74.62 ▼1.80 | 99.60 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,615 ▲34 | 21.50 ▲5.18 | 329.97 ▼136.45 | 107.36 ▼24.93 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.01 | 174.16 ▲2.13 | 127.83 ▲1.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/mcstatus/widget.php+45
Declaration of MCstatus_Widget::widget(array $args, array $instance) should be compatible with WP_Widget::widget($args, $instance)
- Zombie WordPress options detected upon uninstall: 1 option
- widget_mcstatus
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mcstatus/libs/Widgetize.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mcstatus/libs/Widgetize.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mcstatus ===
)
mcstatus/widget.php 92% from 13 tests
The entry point to "MCstatus" version 0.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("mcstatus.php" instead of "widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected560 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 87 | 67 | 460 |
PO File | 1 | 22 | 28 | 59 |
Markdown | 1 | 22 | 0 | 41 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 3 | 18.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin