Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.63ms] Passed 4 tests
An overview of server-side resources used by MonitoringPlus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.17 ▲1.27 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.33 ▼12.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.19 ▼5.84 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 78.31 ▼29.50 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.41 ▲2.47 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MonitoringPlus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 14.64 ▲0.29 | 2.12 ▲0.51 | 43.38 ▲1.20 |
Dashboard /wp-admin | 2,222 ▲42 | 5.72 ▲0.09 | 99.16 ▲13.91 | 47.08 ▲5.35 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.05 ▲0.03 | 40.01 ▲0.19 | 39.19 ▲7.19 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.41 ▲0.27 | 676.61 ▲79.01 | 52.60 ▼1.42 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.23 ▲0.04 | 98.33 ▼1.08 | 47.53 ▲5.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/monitoringplus/src/StartupPlus/MonitoringPlus/WordPress/MonitoringPlusAPI.php+197
Use of undefined constant WordPress - assumed 'WordPress' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: ""
monitoringplus/plugin.php 85% from 13 tests
This is the main PHP file of "MonitoringPlus" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("monitoringplus.php" instead of "plugin.php")
- Description: Keep the plugin description shorter than 140 characters (currently 197 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,124 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 197 | 550 | 721 |
JavaScript | 2 | 16 | 56 | 402 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 48 | 72.73% |
▷ Public methods | 50 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 24.24% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/page_titile_logo.png | 0.59KB | 0.25KB | ▼ 58.37% |
static/img/admin-bar-icon_large.png | 0.26KB | 0.17KB | ▼ 35.79% |
static/img/admin-bar-icon.png | 0.22KB | 0.15KB | ▼ 33.04% |