Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-clanwars/classes/api.class.php+351
Trying to get property 'success' of non-object
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.14ms] Passed 4 tests
An overview of server-side resources used by WP-ClanWars
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.56 ▲2.28 |
Dashboard /wp-admin | 3.48 ▲0.18 | 46.90 ▼1.04 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 52.98 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 98.56 ▼12.90 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.63 ▲2.91 |
Clanwars Cloud /wp-admin/admin.php?page=wp-clanwars-cloud | 3.73 | 37.50 |
Teams /wp-admin/admin.php?page=wp-clanwars-teams | 3.34 | 36.21 |
Games /wp-admin/admin.php?page=wp-clanwars-games | 3.34 | 30.77 |
Matches /wp-admin/admin.php?page=wp-clanwars-matches | 3.34 | 33.95 |
Settings /wp-admin/admin.php?page=wp-clanwars-settings | 3.34 | 36.89 |
Server storage [IO: ▲7.79MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 444 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_cw_teams |
wp_cw_games |
wp_cw_rounds |
wp_cw_maps |
wp_cw_matches |
New WordPress options |
---|
widget_recent-comments |
_wp_clanwars_category |
db_upgraded |
_wp_clanwars_defaultcss |
widget_theysaidso_widget |
theysaidso_admin_options |
_wp_clanwars_dbversion |
widget_clanwars |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-ClanWars
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 13.72 ▼0.61 | 6.35 ▲4.54 | 42.40 ▼6.88 |
Dashboard /wp-admin | 2,267 ▲79 | 4.89 ▼1.03 | 110.41 ▲11.19 | 42.05 ▼3.77 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 2.01 ▼0.01 | 41.92 ▼0.01 | 34.27 ▼0.37 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 23.43 ▲4.94 | 585.12 ▼52.00 | 47.40 ▼2.14 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.23 ▲0.02 | 96.21 ▼11.82 | 41.18 ▼4.99 |
Clanwars Cloud /wp-admin/admin.php?page=wp-clanwars-cloud | 1,930 | 2.05 | 34.66 | 32.23 |
Teams /wp-admin/admin.php?page=wp-clanwars-teams | 1,905 | 2.09 | 36.55 | 30.21 |
Games /wp-admin/admin.php?page=wp-clanwars-games | 1,929 | 2.09 | 36.07 | 30.02 |
Matches /wp-admin/admin.php?page=wp-clanwars-matches | 1,929 | 2.09 | 36.93 | 26.04 |
Settings /wp-admin/admin.php?page=wp-clanwars-settings | 1,929 | 2.21 | 34.68 | 28.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_recent-posts
- _wp_clanwars_dbversion
- widget_theysaidso_widget
- widget_clanwars
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-clanwars/views/login_complete.php
- 47× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-clanwars/views/game_table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-clanwars/views/edit_game.php:5
- > PHP Notice
Undefined variable: partial in wp-content/plugins/wp-clanwars/views/import_publish.php on line 3
- > PHP Notice
Undefined variable: partial in wp-content/plugins/wp-clanwars/views/import_browse.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-clanwars/views/partials/account_header.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-clanwars/views/edit_team.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-clanwars/views/edit_map.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-clanwars/classes/teams_table.class.php on line 28
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-clanwars/classes/maps_table.class.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-clanwars/views/edit_match.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Score card and widget), #2 (Install & share games), #3 (View matches), #4 (Edit match)
wp-clanwars/wp-clanwars.php Passed 13 tests
The main PHP file in "WP-ClanWars" ver. 2.0.1 adds more information about the plugin and also serves as the entry point for this plugin
50 characters long description:
Content manager for e-sports teams and communities
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin62,728 lines of code in 336 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 182 | 8,309 | 4,153 | 32,682 |
PO File | 22 | 5,471 | 5,744 | 11,538 |
PHP | 44 | 1,655 | 594 | 5,490 |
CSS | 14 | 350 | 131 | 3,893 |
HTML | 12 | 636 | 0 | 3,460 |
Sass | 25 | 198 | 30 | 2,128 |
LESS | 13 | 28 | 34 | 1,510 |
SVG | 4 | 0 | 0 | 1,162 |
Markdown | 6 | 91 | 0 | 298 |
JSON | 10 | 0 | 0 | 262 |
ERB | 1 | 87 | 0 | 253 |
YAML | 2 | 4 | 0 | 28 |
Ruby | 1 | 6 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 29.11 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 262 | |
▷ Static methods | 105 | 40.08% |
▷ Public methods | 229 | 87.40% |
▷ Protected methods | 13 | 4.96% |
▷ Private methods | 20 | 7.63% |
Functions | 13 | |
▷ Named functions | 1 | 7.69% |
▷ Anonymous functions | 12 | 92.31% |
Constants | 38 | |
▷ Global constants | 12 | 31.58% |
▷ Class constants | 26 | 68.42% |
▷ Public constants | 26 | 100.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
57 PNG files occupy 3.34MB with 1.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/select2/docs/vendor/images/flags/ca.png | 6.99KB | 3.36KB | ▼ 51.92% |
components/select2/docs/vendor/images/flags/hi.png | 3.10KB | 1.25KB | ▼ 59.46% |
components/select2/docs/vendor/images/flags/nc.png | 3.90KB | 2.15KB | ▼ 44.83% |
components/select2/docs/vendor/images/flags/ok.png | 7.12KB | 3.33KB | ▼ 53.22% |
components/select2/docs/vendor/images/flags/or.png | 9.31KB | 4.06KB | ▼ 56.38% |