Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.14MB] [CPU: ▼9.97ms] Passed 4 tests
Analyzing server-side resources used by League Tables with Standings, Fixtures, Results, Goalscorers, Cards & More!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.72 ▲1.53 |
Dashboard /wp-admin | 3.23 ▼0.08 | 38.05 ▼18.36 |
Posts /wp-admin/edit.php | 3.29 ▼0.06 | 44.24 ▼9.02 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.41 | 88.61 ▼12.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.88 ▼0.24 |
League Table Standings /wp-admin/options-general.php?page=league-table-standings-plugin-menu | 3.20 | 36.33 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
league_table_standings_Options |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for League Tables with Standings, Fixtures, Results, Goalscorers, Cards & More!
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲132 | 13.58 ▲0.34 | 9.59 ▲3.86 | 41.08 ▼5.81 |
Dashboard /wp-admin | 2,255 ▲49 | 4.88 ▼0.01 | 108.31 ▼11.77 | 37.73 ▼15.12 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.18 ▲0.21 | 44.03 ▲7.37 | 34.88 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 23.22 ▲5.15 | 739.13 ▼2.58 | 56.66 ▲1.22 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.23 ▲0.04 | 119.26 ▲5.78 | 46.21 ▲2.81 |
League Table Standings /wp-admin/options-general.php?page=league-table-standings-plugin-menu | 1,490 | 2.07 | 29.60 | 35.52 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- league_table_standings_Options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=league-table-standings-plugin-menu
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ltswp_Main::show_admin_notice() should not be called statically
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/league-table-standings/views/global-settings/page-header.php
- > /wp-content/plugins/league-table-standings/includes/admin-notice-helper/admin-notice-helper.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ltswp_Module' not found in wp-content/plugins/league-table-standings/classes/ltswp-show.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/league-table-standings/includes/admin-notice-helper/admin-notice.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/league-table-standings/league-table-standings.php:11
- > PHP Fatal error
Uncaught Error: Class 'ltswp_Module' not found in wp-content/plugins/league-table-standings/classes/ltswp-main.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/league-table-standings/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'ltswp_Main' not found in wp-content/plugins/league-table-standings/views/global-settings/page-notice.php:62
- > PHP Notice
Undefined variable: setting_logo_path in wp-content/plugins/league-table-standings/views/global-settings/page-header.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (League Table Standings for Soccer / England - Barclays League), #2 (League Table Standings for Soccer / EUROPE: UEFA CHAMPIONS LEAGUE)
- Tags: Please delete some tags, you are using 40 tag instead of maximum 10
league-table-standings/league-table-standings.php 92% from 13 tests
This is the main PHP file of "League Tables with Standings, Fixtures, Results, Goalscorers, Cards & More!" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,328 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 202 | 164 | 1,259 |
CSS | 2 | 3 | 0 | 25 |
JavaScript | 1 | 6 | 2 | 25 |
Markdown | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 10 | 40.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 4 | 16.00% |
▷ Private methods | 0 | 0.00% |
Functions | 108 | |
▷ Named functions | 107 | 99.07% |
▷ Anonymous functions | 1 | 0.93% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |