Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼139.49ms] Passed 4 tests
A check of server-side resources used by ATR Server Status
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.17 | 45.72 ▲10.64 |
Dashboard /wp-admin | 3.22 ▲0.17 | 52.20 ▲8.02 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 48.71 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 96.49 ▼569.03 |
Media Library /wp-admin/upload.php | 3.17 ▲0.16 | 39.12 ▲3.15 |
Configurations /wp-admin/admin.php?page=ass-admin-config | 3.14 | 31.33 |
Server status /wp-admin/admin.php?page=ass-admin-servers | 3.19 | 31.56 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_serverstatuswidget |
Browser metrics Passed 4 tests
An overview of browser requirements for ATR Server Status
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,857 ▲261 | 16.22 ▲0.36 | 12.93 ▲4.40 | 52.64 ▼0.52 |
Dashboard /wp-admin | 3,006 ▲75 | 5.90 ▼0.03 | 148.91 ▼3.99 | 113.75 ▼9.89 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.69 ▲0.01 | 68.13 ▲2.90 | 90.44 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,628 ▲128 | 18.91 ▲0.11 | 397.63 ▲6.38 | 116.51 ▼3.88 |
Media Library /wp-admin/upload.php | 1,843 ▲36 | 5.03 ▲0.02 | 169.37 ▼9.52 | 123.69 ▼10.45 |
Configurations /wp-admin/admin.php?page=ass-admin-config | 1,439 | 2.37 | 67.53 | 83.00 |
Server status /wp-admin/admin.php?page=ass-admin-servers | 1,355 | 2.43 | 65.40 | 83.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_serverstatuswidget
Smoke tests 50% 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 0% from 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/atr-server-status/include/functions.php
- > /wp-content/plugins/atr-server-status/atr-server-status.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atr-server-status/include/post-types.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/atr-server-status/templates/wp-footer.php:5
- > PHP Fatal error
Uncaught Error: Class 'ATR\\Settings' not found in wp-content/plugins/atr-server-status/templates/admin-config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atr-server-status/include/plugin-compatibility/acf-extended.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atr-server-status/include/plugin-compatibility/dark-mode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/atr-server-status/include/compatibility.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/atr-server-status/libraries/httprequest/tests/HttpRequestTest.php:41
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/atr-server-status/templates/view-servers.php on line 1
- > PHP Notice
Undefined variable: servers in wp-content/plugins/atr-server-status/templates/view-servers.php on line 1
- > PHP Notice
Undefined variable: servers in wp-content/plugins/atr-server-status/templates/wp-footer.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in atr-server-status/assets to your readme.txt
atr-server-status/atr-server-status.php Passed 13 tests
The primary PHP file in "ATR Server Status" version 1.5.1 is used by WordPress to initiate all plugin functionality
69 characters long description:
Allow your visitors to check your servers/service status in realtime.
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
No dangerous file extensions were detected1,659 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 260 | 521 | 1,362 |
CSS | 2 | 1 | 0 | 153 |
JavaScript | 3 | 13 | 6 | 70 |
Markdown | 3 | 10 | 0 | 40 |
JSON | 1 | 0 | 0 | 27 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 6 | 7.32% |
▷ Public methods | 80 | 97.56% |
▷ Protected methods | 1 | 1.22% |
▷ Private methods | 1 | 1.22% |
Functions | 36 | |
▷ Named functions | 12 | 33.33% |
▷ Anonymous functions | 24 | 66.67% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 56.22KB | 24.79KB | ▼ 55.89% |
assets/screenshot-2.png | 24.66KB | 11.10KB | ▼ 55.00% |