Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼4.90ms] Passed 4 tests
This is a short check of server-side resources used by WPX Server Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 52.59 ▲11.67 |
Dashboard /wp-admin | 3.71 ▲0.36 | 52.36 ▼10.98 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 47.25 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 84.98 ▼11.39 |
Media Library /wp-admin/upload.php | 3.57 ▲0.33 | 40.54 ▲5.93 |
Server storage [IO: ▲14.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 122 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
wpx_server_light_slug |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPX Server Light
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.45 ▼0.10 | 1.68 ▼0.02 | 42.21 ▲0.92 |
Dashboard /wp-admin | 2,225 ▲34 | 5.88 ▲0.99 | 109.69 ▲7.02 | 42.25 ▼0.07 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.01 | 32.91 ▼4.14 | 35.14 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 23.34 ▲4.86 | 647.89 ▲35.79 | 53.98 ▼0.19 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.24 ▲0.03 | 104.29 ▲9.21 | 46.26 ▲0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- wpx_server_light_slug
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpx-server-light/resources/views/dashboard/ram.php
- > /wp-content/plugins/wpx-server-light/resources/views/dashboard/cpu.php
- 39× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpx-server-light/resources/views/dashboard/software.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Foundation\\Plugin' not found in wp-content/plugins/wpx-server-light/bootstrap/plugin.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-server-light/vendor/wpbones/wpbones/src/Html/HtmlTagOptGroup.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-server-light/vendor/wpbones/wpbones/src/Html/HtmlTagInput.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\Modules\\Module' not found in wp-content/plugins/wpx-server-light/plugin/Modules/Software.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Routing\\Controller' not found in wp-content/plugins/wpx-server-light/plugin/Http/Controllers/Controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-server-light/vendor/wpbones/wpbones/src/Html/HtmlTagDatetime.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\MorrisPHP\\Chart' not found in wp-content/plugins/wpx-server-light/vendor/wpbones/morris-php/src/Area.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\Http\\Controllers\\Controller' not found in wp-content/plugins/wpx-server-light/plugin/Http/Controllers/Dashboard/DashboardController.php:8
- > PHP Fatal error
Uncaught Error: Class 'WPXServerLight\\WPBones\\Html\\HtmlTag' not found in wp-content/plugins/wpx-server-light/vendor/wpbones/wpbones/src/Html/HtmlTagA.php:5
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: iostat, status, process, stats, software...
wpx-server-light/index.php 77% from 13 tests
"WPX Server Light" version 2.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("localization")
- Main file name: Name the main plugin file the same as the plugin slug ("wpx-server-light.php" instead of "index.php")
- Domain Path: The domain path should be prefixed with a forward slash character ("/localization")
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 detected5,975 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 1,579 | 2,927 | 5,446 |
Markdown | 7 | 87 | 0 | 218 |
JSON | 3 | 0 | 0 | 187 |
PO File | 2 | 32 | 62 | 44 |
CSS | 5 | 0 | 19 | 40 |
JavaScript | 2 | 13 | 12 | 40 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 11 | 20.00% |
▷ Concrete classes | 44 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 275 | |
▷ Static methods | 51 | 18.55% |
▷ Public methods | 223 | 81.09% |
▷ Protected methods | 41 | 14.91% |
▷ Private methods | 11 | 4.00% |
Functions | 18 | |
▷ Named functions | 12 | 66.67% |
▷ Anonymous functions | 6 | 33.33% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 23.14KB | 8.41KB | ▼ 63.67% |
assets/screenshot-1.png | 232.06KB | 75.92KB | ▼ 67.28% |
assets/icon-128x128.png | 11.39KB | 4.64KB | ▼ 59.27% |