Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/warcraft-bundle/wb-main-fork.php+54
Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.97MB] [CPU: ▼45.04ms] Passed 4 tests
Analyzing server-side resources used by Warcraft Bundle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▼0.45 | 7.56 ▼29.96 |
Dashboard /wp-admin | 3.03 ▼0.27 | 8.89 ▼35.73 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 7.82 ▼38.34 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 10.21 ▼76.12 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 8.61 ▼22.32 |
Server storage [IO: ▲117.18MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- Try to limit filesystem usage to 25MB (currently using 117.18MB)
Filesystem: 42,319 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_wb_achievements_widget |
can_compress_scripts |
widget_recent-posts |
widget_wb_news_widget |
widget_wb_server_widget |
db_upgraded |
widget_wb_perks_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Warcraft Bundle
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 13.81 ▼0.98 | 6.43 ▲4.77 | 38.26 ▼0.62 |
Dashboard /wp-admin | 2,232 ▲46 | 6.06 ▲1.12 | 101.41 ▼10.07 | 38.74 ▼1.23 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.11 ▲0.14 | 41.09 ▼0.42 | 31.91 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,537 ▲2 | 23.24 ▼0.11 | 602.80 ▼73.40 | 52.73 ▼3.90 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.47 ▲0.38 | 98.72 ▼3.77 | 42.02 ▼5.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/warcraft-bundle/wb-main-fork.php+54
Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 10 options in the database
- db_upgraded
- can_compress_scripts
- widget_wb_server_widget
- widget_wb_achievements_widget
- widget_theysaidso_widget
- widget_recent-posts
- widget_wb_perks_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_wb_news_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/warcraft-bundle/wb-main-fork.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/warcraft-bundle/pages-admin/admin-wb-main-fork.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: Screenshot #1 (Currently no screenshot) image missing
warcraft-bundle/wb-main-fork.php 85% from 13 tests
"Warcraft Bundle" version 2.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 328 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("warcraft-bundle.php" instead of "wb-main-fork.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,572 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 969 | 686 | 3,914 |
CSS | 4 | 12 | 21 | 887 |
JavaScript | 7 | 45 | 185 | 771 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 148 | 88.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 11.38% |
Functions | 7 | |
▷ Named functions | 7 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
42222 PNG files occupy 116.02MB with 26.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/56/ability_hunter_readiness.png | 3.61KB | 3.06KB | ▼ 15.06% |
images/18/inv_mace_88.png | 0.98KB | 1.18KB | 0.00% |
images/36/inv_gauntlets_81red.png | 2.04KB | 1.72KB | ▼ 15.75% |
api-wow/img/emblems/emblem_179.png | 10.58KB | 5.31KB | ▼ 49.86% |
images/36/inv_helmet_04.png | 3.04KB | 2.00KB | ▼ 34.19% |