84% sportspress-for-soccer

Code Review | SportsPress for Football (Soccer)

WordPress plugin SportsPress for Football (Soccer) scored84%from 54 tests.

About plugin

  • Plugin page: sportspress-for-s...
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Aug 27, 2020
  • Number of updates: 13
  • Update frequency: every 138.6 days
  • Top authors: brianmiyaji (84.62%)ThemeBoy (23.08%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /88,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼7.68ms] Passed 4 tests

Server-side resources used by SportsPress for Football (Soccer)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4844.14 ▼4.96
Dashboard /wp-admin3.80 ▲0.4652.57 ▼26.25
Posts /wp-admin/edit.php3.86 ▲0.4951.90 ▲1.50
Add New Post /wp-admin/post-new.php6.32 ▲0.4388.65 ▼0.47
Media Library /wp-admin/upload.php3.67 ▲0.4338.37 ▲0.96
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.8837.38

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

SportsPress for Football (Soccer): an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.24 ▼0.141.74 ▼0.2042.27 ▼7.89
Dashboard /wp-admin2,222 ▲455.56 ▼0.0589.78 ▼14.2844.76 ▼3.39
Posts /wp-admin/edit.php2,139 ▲392.03 ▲0.0337.82 ▲0.1941.88 ▲8.57
Add New Post /wp-admin/post-new.php1,553 ▲2523.38 ▲0.31648.31 ▼71.1051.52 ▲0.70
Media Library /wp-admin/upload.php1,441 ▲414.15 ▲0.05104.36 ▼3.0947.88 ▲0.61
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9742.0327.4229.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/sportspress-for-soccer/includes/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

sportspress-for-soccer/sportspress-for-soccer.php Passed 13 tests

Analyzing the main PHP file in "SportsPress for Football (Soccer)" version 0.9.6
54 characters long description:
A suite of football (soccer) features for SportsPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,985 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35161,6721,931
PO File12215251
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity45.38
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.11
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods114
▷ Static methods87.02%
▷ Public methods8978.07%
▷ Protected methods2320.18%
▷ Private methods21.75%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin