78% webeki-soccer-scores

Code Review | Soccer Widgets - Football Results & Rankings

WordPress plugin Soccer Widgets - Football Results & Rankings scored78%from 54 tests.

About plugin

  • Plugin page: webeki-soccer-scores
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2018
  • Latest release: Jul 31, 2023
  • Number of updates: 22
  • Update frequency: every 81.6 days
  • Top authors: nvmnewvision (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.02ms] Passed 4 tests

A check of server-side resources used by Soccer Widgets - Football Results & Rankings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.74 ▼0.09
Dashboard /wp-admin3.33 ▲0.0246.71 ▼6.25
Posts /wp-admin/edit.php3.38 ▲0.0246.54 ▼0.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.11 ▼1.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.36 ▲5.00
Soccer Widgets /wp-admin/admin.php?page=soccer-scores-widget3.3731.09
Customization /wp-admin/admin.php?page=ss-widget-customize3.3131.31

Server storage [IO: ▲0.04MB] [DB: ▲0.09MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables
wp_ce_sswidget_leagues
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Soccer Widgets - Football Results & Rankings: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.48 ▼0.111.74 ▼0.0443.83 ▼0.56
Dashboard /wp-admin2,233 ▲455.85 ▲0.9799.64 ▼16.5865.99 ▲18.46
Posts /wp-admin/edit.php2,122 ▲331.99 ▼0.0238.49 ▲4.0234.08 ▼1.21
Add New Post /wp-admin/post-new.php1,694 ▲18022.68 ▲5.08759.58 ▲81.2162.47 ▲12.33
Media Library /wp-admin/upload.php1,421 ▲334.11 ▼0.13102.24 ▼4.2678.32 ▲32.15
Soccer Widgets /wp-admin/admin.php?page=soccer-scores-widget1,9502.0925.2628.22
Customization /wp-admin/admin.php?page=ss-widget-customize1,2541.6827.5738.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/webeki-soccer-scores/SoccerScores-widget.php:147

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 156 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 159 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 165 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 168 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 174 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/admin.php?page=ss-widget-customize
    • > Rendering (warning) in unknown
    /wp-admin/admin.php?page=ss-widget-customize 177 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

webeki-soccer-scores/SoccerScores-widget.php 85% from 13 tests

The main PHP script in "Soccer Widgets - Football Results & Rankings" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("webeki-soccer-scores.php" instead of "SoccerScores-widget.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin425 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP43531290
JavaScript113295
CSS27240

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods952.94%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.81KB0.78KB▼ 3.61%