90% eh-gms-feed

Code Review | Hockey GMS Feed

WordPress plugin Hockey GMS Feed scored90%from 54 tests.

About plugin

  • Plugin page: eh-gms-feed
  • Plugin version: 3.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 12, 2021
  • Latest release: Oct 19, 2023
  • Number of updates: 45
  • Update frequency: every 15.7 days
  • Top authors: mtreherne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,480 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.25MB] [CPU: ▼1.42ms] Passed 4 tests

Server-side resources used by Hockey GMS Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2542.71 ▲4.99
Dashboard /wp-admin3.56 ▲0.2643.67 ▼2.18
Posts /wp-admin/edit.php3.68 ▲0.3247.44 ▲1.76
Add New Post /wp-admin/post-new.php6.14 ▲0.2583.65 ▼8.27
Media Library /wp-admin/upload.php3.49 ▲0.2536.79 ▲3.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Hockey GMS Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.34 ▼0.191.71 ▲0.0343.39 ▲4.12
Dashboard /wp-admin2,208 ▲315.54 ▼0.0180.48 ▼9.5338.52 ▼0.94
Posts /wp-admin/edit.php2,113 ▲161.99 ▼0.0034.51 ▼3.5932.92 ▼4.16
Add New Post /wp-admin/post-new.php1,539 ▲1123.69 ▲0.47629.31 ▼63.7553.20 ▲2.49
Media Library /wp-admin/upload.php1,410 ▲74.19 ▼0.0094.32 ▼5.7942.91 ▼0.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: gms, hockey

eh-gms-feed/eh-gms-feed.php Passed 13 tests

The main PHP file in "Hockey GMS Feed" ver. 3.8 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Show fixtures, results and tables from England Hockey GMS

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin870 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP56114718
JavaScript1111125
CSS16727

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity106.00
▷ Minimum class complexity20.00
▷ Maximum class complexity192.00
Average method complexity5.88
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods1638.10%
▷ Protected methods00.00%
▷ Private methods2661.90%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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