Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.99ms] Passed 4 tests
Analyzing server-side resources used by [TNM] Server Status and Load Average
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.62 ▼3.15 |
Dashboard /wp-admin | 3.29 ▼0.05 | 45.06 ▼25.23 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.36 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.12 ▲0.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.03 ▲5.01 |
[TNM] Server Status /wp-admin/options-general.php?page=tnm_server_status | 3.18 | 29.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
A check of browser resources used by [TNM] Server Status and Load Average
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,179 ▼567 | 12.42 ▼2.16 | 2.26 ▲0.35 | 41.46 ▼1.63 |
Dashboard /wp-admin | 1,576 ▼615 | 1.38 ▼3.53 | 13.67 ▼97.02 | 33.72 ▼6.49 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.05 ▼0.01 | 42.60 ▲1.68 | 43.50 ▲6.46 |
Add New Post /wp-admin/post-new.php | 1,701 ▲182 | 23.90 ▲0.97 | 665.81 ▼11.47 | 39.65 ▼13.30 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.26 ▲0.07 | 104.29 ▼1.92 | 44.03 ▼1.88 |
[TNM] Server Status /wp-admin/options-general.php?page=tnm_server_status | 839 | 2.10 | 25.82 | 42.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tnm_server_status
- > Notice in wp-content/plugins/tnm-server-status-and-load-average/tnm-server-status.php+173
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tnm-server-status-and-load-average/tnm-server-status.php:83
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=tnm_server_status
- > Network (severe)
wp-content/plugins/tnm-server-status/tnm-server-status.php?la=true - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Wordpress Server Load Admin Widget with load average in admin bar) image not found
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== tnm-server-status-and-load-average ===
)
tnm-server-status-and-load-average/tnm-server-status.php 92% from 13 tests
The main file in "[TNM] Server Status and Load Average" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tnm-server-status-and-load-average.php" instead of "tnm-server-status.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
There were no executable files found in this plugin218 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 96 | 10 | 218 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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 | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tnm-server-status.png | 21.63KB | 8.01KB | ▼ 62.96% |