Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.59MB] [CPU: ▼1.32ms] Passed 4 tests
This is a short check of server-side resources used by WoWpi
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 28.64 ▼9.44 |
Dashboard /wp-admin | 3.95 ▲0.64 | 45.35 ▼3.29 |
Posts /wp-admin/edit.php | 4.00 ▲0.64 | 48.71 ▲4.33 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 93.29 ▲4.16 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 37.56 ▲3.31 |
WoWpi Settings /wp-admin/options-general.php?page=wowpi | 3.75 | 31.53 |
Server storage [IO: ▲1.62MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_wowpi_widget_character |
widget_recent-comments |
widget_theysaidso_widget |
wowpi_version |
can_compress_scripts |
widget_wowpi_widget_realms |
Browser metrics Passed 4 tests
WoWpi: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲147 | 13.61 ▼0.99 | 11.25 ▲9.72 | 38.37 ▼4.11 |
Dashboard /wp-admin | 2,196 ▲16 | 5.49 ▼0.10 | 85.80 ▼3.53 | 37.35 ▼2.72 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▼0.00 | 35.80 ▲1.34 | 33.61 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.35 ▲0.35 | 607.64 ▼96.21 | 70.17 ▲13.49 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.02 | 95.96 ▼4.15 | 42.23 ▼2.60 |
WoWpi Settings /wp-admin/options-general.php?page=wowpi | 1,027 | 1.99 | 21.89 | 29.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_wowpi_widget_character
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_wowpi_widget_realms
- wowpi_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wowpi
- > Notice in wp-content/plugins/wowpi/includes/wowpi_admin.php+161
Trying to access array offset on value of type bool
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wowpi/includes/wowpi_widget_character.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/wowpi/wowpi.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wowpi/includes/scripts.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wowpi/includes/wowpi_shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wowpi/includes/wowpi_widget_realms.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wowpi/includes/wowpi_admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wowpi/includes/wowpi_widgets.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: armory, wow, world of warcraft
wowpi/wowpi.php Passed 13 tests
"WoWpi" version 2.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
84 characters long description:
WoWpi is an World of Warcraft API Armory plugin used to get data from Battle.net API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,514 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 464 | 305 | 3,145 |
JSON | 2 | 0 | 0 | 779 |
PO File | 3 | 132 | 138 | 362 |
CSS | 3 | 25 | 12 | 227 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 93 | |
▷ Named functions | 93 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.92MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/theme/skull_normal.png | 1.90KB | 1.30KB | ▼ 31.36% |
assets/images/symbols/class-5.png | 72.43KB | 21.41KB | ▼ 70.44% |
assets/images/theme/shield.png | 0.31KB | 0.29KB | ▼ 7.28% |
assets/images/symbols/class-2.png | 83.91KB | 24.66KB | ▼ 70.61% |
assets/images/symbols/class-7.png | 87.86KB | 23.91KB | ▼ 72.78% |