Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.07MB] [CPU: ▲33.02ms] 75% from 4 tests
A check of server-side resources used by AnWP Football Leagues
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.07MB on /wp-admin/edit.php?post_type=anwp_standing)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.36 ▲4.90 | 68.54 ▲26.45 |
Dashboard /wp-admin | 8.42 ▲5.08 | 94.85 ▲32.92 |
Posts /wp-admin/edit.php | 8.51 ▲5.15 | 88.30 ▲36.55 |
Add New Post /wp-admin/post-new.php | 11.18 ▲5.30 | 142.08 ▲36.17 |
Media Library /wp-admin/upload.php | 8.37 ▲5.14 | 87.33 ▲52.84 |
Add New Player /wp-admin/post-new.php?post_type=anwp_player | 8.53 | 105.46 |
Shortcodes /wp-admin/admin.php?page=anwpfl-shortcodes | 8.39 | 73.72 |
Add Referee /wp-admin/post-new.php?post_type=anwp_referee | 8.52 | 83.34 |
Matches /wp-admin/edit.php?post_type=anwp_match | 8.54 | 84.97 |
Plugin Health /wp-admin/admin.php?page=anwpfl-plugin-health | 8.39 | 71.59 |
Players /wp-admin/edit.php?post_type=anwp_player | 8.48 | 72.65 |
Support /wp-admin/admin.php?page=anwpfl-support | 8.26 | 69.25 |
Staff /wp-admin/edit.php?post_type=anwp_staff | 8.48 | 69.90 |
Customize /wp-admin/admin.php?page=anwpfl-plugin-customize | 8.39 | 70.91 |
Standing Tables /wp-admin/edit.php?post_type=anwp_standing | 8.48 | 68.89 |
Server storage [IO: ▲6.87MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 404 new files
Database: 4 new tables, 19 new options
New tables |
---|
wp_anwpfl_matches |
wp_anwpfl_players_manual_stats |
wp_anwpfl_missing_players |
wp_anwpfl_players |
New WordPress options |
---|
widget_anwpfl-widget-cards |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_anwpfl-widget-birthday |
widget_anwpfl-widget-video |
anwpfl_version |
can_compress_scripts |
widget_anwpfl-widget-next-match |
... |
Browser metrics Passed 4 tests
AnWP Football Leagues: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲945 | 14.47 ▼0.28 | 5.43 ▲3.85 | 49.43 ▲12.69 |
Dashboard /wp-admin | 2,874 ▲700 | 5.77 ▲0.24 | 100.89 ▲16.98 | 76.25 ▲31.72 |
Posts /wp-admin/edit.php | 2,789 ▲689 | 2.85 ▲0.82 | 57.82 ▲16.85 | 42.80 ▲4.88 |
Add New Post /wp-admin/post-new.php | 1,977 ▲440 | 18.71 ▲0.47 | 603.84 ▼11.56 | 29.76 ▼38.34 |
Media Library /wp-admin/upload.php | 2,067 ▲664 | 5.07 ▲0.86 | 103.73 ▲8.45 | 87.55 ▲43.60 |
Add New Player /wp-admin/post-new.php?post_type=anwp_player | 2,724 | 6.13 | 168.42 | 78.08 |
Shortcodes /wp-admin/admin.php?page=anwpfl-shortcodes | 1,851 | 5.82 | 111.47 | 64.06 |
Add Referee /wp-admin/post-new.php?post_type=anwp_referee | 2,672 | 5.85 | 110.60 | 82.42 |
Matches /wp-admin/edit.php?post_type=anwp_match | 2,131 | 6.23 | 81.37 | 68.25 |
Plugin Health /wp-admin/admin.php?page=anwpfl-plugin-health | 1,762 | 5.89 | 81.21 | 83.33 |
Players /wp-admin/edit.php?post_type=anwp_player | 1,871 | 2.82 | 46.89 | 32.95 |
Support /wp-admin/admin.php?page=anwpfl-support | 1,546 | 2.49 | 33.33 | 30.39 |
Staff /wp-admin/edit.php?post_type=anwp_staff | 1,863 | 2.77 | 38.05 | 35.02 |
Customize /wp-admin/admin.php?page=anwpfl-plugin-customize | 1,830 | 5.69 | 58.45 | 78.51 |
Standing Tables /wp-admin/edit.php?post_type=anwp_standing | 1,803 | 2.74 | 37.00 | 31.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 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 does not fully uninstall, leaving 4 tables in the database
- wp_anwpfl_missing_players
- wp_anwpfl_players
- wp_anwpfl_matches
- wp_anwpfl_players_manual_stats
- This plugin does not fully uninstall, leaving 19 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_anwpfl-widget-matches
- widget_anwpfl-widget-next-match
- widget_anwpfl-widget-cards
- widget_recent-comments
- anwpfl_db_version
- widget_anwpfl-widget-clubs
- widget_anwpfl-widget-competition-list
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 items
- 43× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-leagues-by-anwppro/includes/shortcodes/class-anwpfl-shortcode-standing.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-leagues-by-anwppro/includes/shortcodes/class-anwpfl-shortcode-match-last.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/football-leagues-by-anwppro/theme-support/twentysixteen/single.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/football-leagues-by-anwppro/includes/cmb2-fields/class-anwp-fl-cmb2-field-select2.php:28
- > PHP Fatal error
Uncaught Error: Class 'AnWPFL_Widget' not found in wp-content/plugins/football-leagues-by-anwppro/includes/widgets/class-anwpfl-widget-video.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-leagues-by-anwppro/includes/cmb2-fields/cmb-field-ordering-list.php:24
- > PHP Fatal error
Uncaught Error: Class 'AnWPFL_Widget' not found in wp-content/plugins/football-leagues-by-anwppro/includes/widgets/class-anwpfl-widget-birthday.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-leagues-by-anwppro/includes/shortcodes/class-anwpfl-shortcode-players.php:29
- > PHP Fatal error
Uncaught Error: Class 'AnWPFL_Widget' not found in wp-content/plugins/football-leagues-by-anwppro/includes/widgets/class-anwpfl-widget-standing.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-leagues-by-anwppro/includes/shortcodes/class-anwpfl-shortcode-competition-list.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: league management, football club, club management, football, soccer...
football-leagues-by-anwppro/anwp-football-leagues.php 77% from 13 tests
"AnWP Football Leagues" version 0.15.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("football-leagues-by-anwppro.php" instead of "anwp-football-leagues.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
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 detected115,747 lines of code in 353 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 22 | 3,674 | 410 | 42,966 |
PHP | 191 | 7,040 | 11,929 | 37,046 |
JavaScript | 25 | 6,377 | 5,671 | 34,498 |
Markdown | 8 | 220 | 0 | 613 |
SVG | 100 | 0 | 1 | 333 |
JSON | 7 | 0 | 0 | 291 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 47.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 714.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 1 | 1.61% |
▷ Concrete classes | 61 | 98.39% |
▷ Final classes | 1 | 1.64% |
Methods | 710 | |
▷ Static methods | 12 | 1.69% |
▷ Public methods | 600 | 84.51% |
▷ Protected methods | 75 | 10.56% |
▷ Private methods | 35 | 4.93% |
Functions | 50 | |
▷ Named functions | 15 | 30.00% |
▷ Anonymous functions | 35 | 70.00% |
Constants | 8 | |
▷ Global constants | 1 | 12.50% |
▷ Class constants | 7 | 87.50% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/google-maps-placeholder.png | 32.20KB | 9.91KB | ▼ 69.23% |
vendor/world-flags-sprite/images/flags32.png | 87.02KB | 51.06KB | ▼ 41.32% |
admin/img/cmb2-icon.png | 3.87KB | 1.77KB | ▼ 54.30% |
public/img/empty_player.png | 2.51KB | 1.84KB | ▼ 26.74% |
admin/img/anwp-fl-icon.png | 7.23KB | 3.64KB | ▼ 49.68% |