72% league-table-standings

Code Review | League Tables with Standings, Fixtures, Results, Goalscorers, Cards & More!

WordPress plugin League Tables with Standings, Fixtures, Results, Goalscorers, Cards & More! scored 72% from 54 tests.

About plugin

  • Plugin page: league-table-stan...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Jan 9, 2016
  • Number of updates: 12
  • Update frequency: every 3.3 days
  • Top authors: lswjohn (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 8,330 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.72 ▲1.53
Dashboard /wp-admin3.23 ▼0.0838.05 ▼18.36
Posts /wp-admin/edit.php3.29 ▼0.0644.24 ▼9.02
Add New Post /wp-admin/post-new.php5.47 ▼0.4188.61 ▼12.24
Media Library /wp-admin/upload.php3.23 ▲0.0038.88 ▼0.24
League Table Standings /wp-admin/options-general.php?page=league-table-standings-plugin-menu3.2036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲13213.58 ▲0.349.59 ▲3.8641.08 ▼5.81
Dashboard /wp-admin2,255 ▲494.88 ▼0.01108.31 ▼11.7737.73 ▼15.12
Posts /wp-admin/edit.php2,137 ▲482.18 ▲0.2144.03 ▲7.3734.88 ▲0.60
Add New Post /wp-admin/post-new.php1,559 ▲1723.22 ▲5.15739.13 ▼2.5856.66 ▲1.22
Media Library /wp-admin/upload.php1,431 ▲434.23 ▲0.04119.26 ▲5.7846.21 ▲2.81
League Table Standings /wp-admin/options-general.php?page=league-table-standings-plugin-menu1,4902.0729.6035.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP112021641,259
CSS23025
JavaScript16225
Markdown17019

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 code0.42
Average class complexity5.40
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes120.00%
▷ Concrete classes480.00%
▷ Final classes00.00%
Methods25
▷ Static methods1040.00%
▷ Public methods2184.00%
▷ Protected methods416.00%
▷ Private methods00.00%
Functions108
▷ Named functions10799.07%
▷ Anonymous functions10.93%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
images/blank.png0.27KB0.10KB▼ 61.68%