84% sportspress-for-volleyball

Code Review | SportsPress for Volleyball

WordPress plugin SportsPress for Volleyball scored84%from 54 tests.

About plugin

  • Plugin page: sportspress-for-v...
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Jul 9, 2019
  • Latest release: Aug 27, 2020
  • Number of updates: 3
  • Update frequency: every 138.3 days
  • Top authors: ThemeBoy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,182 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.08MB] [CPU: ▼14.85ms] Passed 4 tests

Analyzing server-side resources used by SportsPress for Volleyball
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.39 ▼8.66
Dashboard /wp-admin3.42 ▲0.1249.54 ▼12.29
Posts /wp-admin/edit.php3.47 ▲0.1247.13 ▼11.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0684.86 ▼27.31
Media Library /wp-admin/upload.php3.28 ▲0.0644.36 ▼0.92
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3558.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for SportsPress for Volleyball
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6014.74 ▲0.152.19 ▼0.0144.43 ▼27.22
Dashboard /wp-admin2,237 ▲494.86 ▼1.04103.36 ▼31.1741.38 ▼18.68
Posts /wp-admin/edit.php2,128 ▲362.04 ▲0.0437.15 ▼3.8940.61 ▼1.95
Add New Post /wp-admin/post-new.php1,555 ▲16320.96 ▲2.59728.55 ▼874.7557.72 ▼16.15
Media Library /wp-admin/upload.php1,421 ▲334.23 ▼0.01178.57 ▲34.5890.09 ▲36.35
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9832.0558.5454.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though no errors were found, this is by no means 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 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-volleyball/includes/class-tgm-plugin-activation.php:2109

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

sportspress-for-volleyball/sportspress-for-volleyball.php 92% from 13 tests

The primary PHP file in "SportsPress for Volleyball" version 0.9 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,941 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35101,6601,873
JavaScript13140
CSS14028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity44.12
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods110
▷ Static methods76.36%
▷ Public methods8577.27%
▷ Protected methods2320.91%
▷ Private methods21.82%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected