89% sports-betting-odds

Code Review | Sports Betting Odds

WordPress plugin Sports Betting Odds scored89%from 54 tests.

About plugin

  • Plugin page: sports-betting-odds
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2023
  • Latest release: Jun 29, 2023
  • Number of updates: 13
  • Update frequency: every 10.1 days
  • Top authors: flytonic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼6.34ms] Passed 4 tests

A check of server-side resources used by Sports Betting Odds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.40 ▲1.54
Dashboard /wp-admin3.43 ▲0.0851.95 ▼16.22
Posts /wp-admin/edit.php3.48 ▲0.1250.04 ▲0.17
Add New Post /wp-admin/post-new.php6.01 ▲0.1389.41 ▼10.86
Media Library /wp-admin/upload.php3.35 ▲0.1239.89 ▲4.43
All Odds /wp-admin/edit.php?post_type=odds3.3940.88
Document /wp-admin/edit.php?post_type=odds&page=sports_betting_odds_document3.3235.39
Add New Odds /wp-admin/post-new.php?post_type=odds3.4047.07

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Sports Betting Odds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.33 ▼0.261.69 ▼0.1242.68 ▼2.18
Dashboard /wp-admin2,226 ▲465.61 ▲0.0593.10 ▲2.4040.33 ▲1.13
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0735.66 ▼4.5632.87 ▼3.38
Add New Post /wp-admin/post-new.php1,559 ▲3123.21 ▲0.15675.80 ▼26.4151.74 ▼12.05
Media Library /wp-admin/upload.php1,428 ▲284.18 ▲0.01108.89 ▲1.3049.13 ▲2.64
All Odds /wp-admin/edit.php?post_type=odds1,1001.9331.0633.16
Document /wp-admin/edit.php?post_type=odds&page=sports_betting_odds_document8511.9925.0327.26
Add New Odds /wp-admin/post-new.php?post_type=odds1,8783.5963.5534.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can take inspiration from this readme.txt

sports-betting-odds/sports_betting.php 92% from 13 tests

The principal PHP file in "Sports Betting Odds" v. 1.04 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("sports-betting-odds.php" instead of "sports_betting.php")

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
There were no executable files found in this plugin409 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP617924355
CSS12154

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bookmaker.png17.02KB8.97KB▼ 47.28%