78% football-ranking

Code Review | Football Ranking

WordPress plugin Football Ranking scored78%from 54 tests.

About plugin

  • Plugin page: football-ranking
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.3
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: May 16, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sorengolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.38ms] Passed 4 tests

Server-side resources used by Football Ranking
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.67 ▼2.79
Dashboard /wp-admin3.32 ▲0.0146.09 ▼0.22
Posts /wp-admin/edit.php3.43 ▲0.0847.34 ▲2.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.12 ▼11.76
Media Library /wp-admin/upload.php3.24 ▲0.0136.60 ▲1.26
Football Ranking /wp-admin/options-general.php?page=football_ranking_options3.2231.75

Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Football Ranking: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.101.65 ▼0.5163.81 ▲12.04
Dashboard /wp-admin2,207 ▲165.82 ▼0.08102.61 ▲4.0140.43 ▼3.75
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0139.43 ▲2.0836.58 ▲4.44
Add New Post /wp-admin/post-new.php1,536 ▲323.34 ▲0.18591.92 ▼98.6446.79 ▼11.51
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0696.65 ▼11.7740.34 ▼8.23
Football Ranking /wp-admin/options-general.php?page=football_ranking_options9742.0927.9329.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/football-ranking/football-ranking.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=football_ranking_options
    • > Javascript (severe) in unknown
    /wp-content/plugins/football-ranking/assets/js?ver=6.3.1 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

football-ranking/football-ranking.php Passed 13 tests

The primary PHP file in "Football Ranking" version 1.0 is used by WordPress to initiate all plugin functionality
75 characters long description:
Get updated football rankings for international team for both men and women

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
Good job! No executable or dangerous file extensions detected937 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP516928505
CSS12738424
JavaScript1215
JSON3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity29.00
▷ Minimum class complexity5.00
▷ Maximum class complexity56.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods3494.44%
▷ Protected methods00.00%
▷ Private methods25.56%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
assets/gfx/moversIcons.png1.99KB1.33KB▼ 33.05%