90% hockeydata-los

Code Review | hockeydata LOS

WordPress plugin hockeydata LOS scored90%from 54 tests.

About plugin

  • Plugin page: hockeydata-los
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Mar 18, 2022
  • Number of updates: 22
  • Update frequency: every 54.2 days
  • Top authors: hockeydata (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.61MB] [CPU: ▼5.05ms] Passed 4 tests

This is a short check of server-side resources used by hockeydata LOS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6641.91 ▼1.14
Dashboard /wp-admin3.95 ▲0.6046.66 ▼21.17
Posts /wp-admin/edit.php4.00 ▲0.6449.20 ▲3.93
Add New Post /wp-admin/post-new.php6.49 ▲0.6086.09 ▼1.15
Media Library /wp-admin/upload.php3.81 ▲0.5837.16 ▲3.26
hockeydata LOS /wp-admin/options-general.php?page=hockeydata_los_settings3.8138.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 20 new options
New WordPress options
widget_hd_los_widget_knockout_stage
widget_hd_los_widget_game_ticker
widget_hd_los_widget_team_stats
widget_hd_los_widget_game_slider
widget_theysaidso_widget
hd_los_db_version
widget_hd_los_widget_player_full_page
db_upgraded
widget_hd_los_widget_leaders
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by hockeydata LOS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲19013.72 ▼0.837.69 ▲5.8440.21 ▼6.02
Dashboard /wp-admin2,231 ▲405.26 ▲0.20113.85 ▲15.4841.53 ▼0.54
Posts /wp-admin/edit.php2,101 ▲92.30 ▲0.3141.12 ▲6.9937.52 ▲5.34
Add New Post /wp-admin/post-new.php1,540 ▲2123.74 ▲0.31604.09 ▼37.7226.87 ▼26.72
Media Library /wp-admin/upload.php1,423 ▲384.24 ▲0.1297.33 ▼2.0143.92 ▼1.96
hockeydata LOS /wp-admin/options-general.php?page=hockeydata_los_settings1,0131.9932.1132.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 20 options in the database
    • widget_hd_los_widget_players
    • theysaidso_admin_options
    • widget_hd_los_widget_player_full_page
    • widget_hd_los_widget_schedule
    • widget_hd_los_widget_team_stats
    • widget_hd_los_widget_team_full_page
    • widget_hd_los_widget_knockout_stage
    • widget_theysaidso_widget
    • widget_hd_los_widget_game_slider
    • widget_hd_los_widget_leaders
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sport, widgets, hockeydata, statistics

hockeydata-los/hockeydata-los.php 92% from 13 tests

"hockeydata LOS" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

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
No dangerous file extensions were detected2,390 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,103261,779
PO File1214268468
JavaScript16814106
CSS110037

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods85
▷ Static methods00.00%
▷ Public methods3136.47%
▷ Protected methods4755.29%
▷ Private methods78.24%
Functions29
▷ Named functions1551.72%
▷ Anonymous functions1448.28%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin