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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.41ms] Passed 4 tests
Server-side resources used by ServerMonitor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 33.39 ▼7.59 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.04 ▼0.48 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.08 ▲4.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.93 ▼10.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 33.06 ▼2.92 |
Resource Monitor /wp-admin/admin.php?page=servermonitor | 3.24 | 30.65 |
PHP error log /wp-admin/admin.php?page=servermonitor-php | 3.23 | 30.04 |
Clear cache /wp-admin/admin.php?page=servermonitor-cache | 3.23 | 29.05 |
System Info /wp-admin/admin.php?page=servermonitor-info | 3.23 | 25.23 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
ServerMonitor: 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,848 ▲102 | 13.26 ▼1.12 | 1.69 ▼0.11 | 43.21 ▲0.04 |
Dashboard /wp-admin | 2,254 ▲63 | 5.90 ▲1.03 | 105.57 ▼0.14 | 39.67 ▼2.53 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.01 ▲0.01 | 40.62 ▲5.20 | 35.40 ▼5.00 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 17.82 ▼0.32 | 637.40 ▲34.99 | 53.42 ▼7.54 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.20 ▼0.11 | 96.05 ▼1.81 | 43.24 ▼0.39 |
Resource Monitor /wp-admin/admin.php?page=servermonitor | 1,108 | 2.39 | 64.07 | 31.92 |
PHP error log /wp-admin/admin.php?page=servermonitor-php | 800 | 2.04 | 23.81 | 26.89 |
Clear cache /wp-admin/admin.php?page=servermonitor-cache | 811 | 2.06 | 23.64 | 25.52 |
System Info /wp-admin/admin.php?page=servermonitor-info | 805 | 2.07 | 25.22 | 24.07 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/servermonitor/uninstall.php
- > /wp-content/plugins/servermonitor/api.php
- > /wp-content/plugins/servermonitor/servermonitor.php
- > /wp-content/plugins/servermonitor/monitor.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: debug, server info, memory, disk space, information...
servermonitor/servermonitor.php Passed 13 tests
The entry point to "ServerMonitor" version 0.3.6 is a PHP file that has certain tags in its header comment area
99 characters long description:
A simple plugin to view server resource usage (ram, cpu, disk), check your PHP error log, and more.
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 plugin315 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 37 | 22 | 246 |
JavaScript | 3 | 17 | 17 | 60 |
CSS | 2 | 0 | 1 | 9 |
PHP code Passed 2 tests
An overview 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.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pct.png | 0.37KB | 0.38KB | 0.00% |
images/pixel.png | 0.09KB | 0.09KB | 0.00% |
images/sec.png | 0.53KB | 0.55KB | 0.00% |