Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; SWTORServerStatusWidget has a deprecated constructor
Server metrics [RAM: ▼1.51MB] [CPU: ▼52.03ms] Passed 4 tests
Analyzing server-side resources used by SWTOR Server Status
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.48 ▼0.98 | 6.03 ▼34.91 |
Dashboard /wp-admin | 2.50 ▼0.81 | 7.43 ▼43.40 |
Posts /wp-admin/edit.php | 2.50 ▼0.86 | 6.41 ▼40.65 |
Add New Post /wp-admin/post-new.php | 2.50 ▼3.39 | 9.47 ▼89.16 |
Media Library /wp-admin/upload.php | 2.50 ▼0.73 | 7.56 ▼27.21 |
SWTOR Server Status /wp-admin/options-general.php?page=swtor_server_status | 2.50 | 6.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_swtor_server_status_guild |
swtor_server_status_css |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
swtor_server_status_morecss |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SWTOR Server Status
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.25 ▼1.14 | 1.62 ▼0.42 | 38.72 ▼3.94 |
Dashboard /wp-admin | 2,198 ▲10 | 5.83 ▲0.93 | 98.19 ▼5.48 | 38.46 ▼7.22 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.98 ▼0.03 | 36.23 ▼0.88 | 34.59 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,672 ▲130 | 22.36 ▲4.07 | 599.71 ▼20.68 | 74.04 ▼20.43 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.08 | 104.20 ▼0.75 | 43.63 ▼16.04 |
SWTOR Server Status /wp-admin/options-general.php?page=swtor_server_status | 818 | 2.05 | 24.76 | 25.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; SWTORServerStatusWidget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_swtor_server_status_guild
- swtor_server_status_morecss
- widget_theysaidso_widget
- swtor_server_status_css
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > Deprecated in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; SWTORServerStatusWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > Deprecated in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php+103
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SWTORServerStatusWidget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > User deprecated in wp-includes/functions.php+5453
Function attribute_escape is deprecated since version 2.8.0! Use esc_attr() instead.
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=swtor_server_status
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/swtor-server-status/swtor-server-status-widget.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (This is how the plugin looks like in my blog)
- Contributors: The plugin contributors field is not present
swtor-server-status/swtor-server-status.php 77% from 13 tests
The primary PHP file in "SWTOR Server Status" version 0.3.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: You should use only dashes and lowercase characters for the domain path ("i18n/")
- Domain Path: Prefix the domain path with a forward slash character ("/i18n/")
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
Everything looks great! No dangerous files found in this plugin1,075 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 176 | 198 | 1,021 |
CSS | 1 | 10 | 1 | 54 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 80.26% |
▷ Protected methods | 15 | 19.74% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
server_status_offline.png | 0.62KB | 0.62KB | 0.00% |
server_status_online.png | 0.65KB | 0.62KB | ▼ 4.63% |