84% statsfc-squad-selector

Code Review | StatsFC Squad Selector

WordPress plugin StatsFC Squad Selector scored84%from 54 tests.

About plugin

  • Plugin page: statsfc-squad-sel...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 28, 2014
  • Latest release: Jun 22, 2023
  • Number of updates: 33
  • Update frequency: every 97.6 days
  • Top authors: willjw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.87ms] Passed 4 tests

This is a short check of server-side resources used by StatsFC Squad Selector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.77 ▼0.76
Dashboard /wp-admin3.34 ▲0.0445.82 ▼2.58
Posts /wp-admin/edit.php3.39 ▲0.0444.01 ▼2.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.54 ▼9.70
Media Library /wp-admin/upload.php3.26 ▲0.0433.12 ▲2.08

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_statsfc_squadselector
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

StatsFC Squad Selector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼0.991.80 ▼0.1139.80 ▼3.31
Dashboard /wp-admin2,209 ▲215.83 ▼0.05101.79 ▼20.8439.33 ▼9.85
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0536.11 ▲0.2532.49 ▼0.74
Add New Post /wp-admin/post-new.php1,528 ▼118.05 ▼5.08596.82 ▼92.5754.83 ▲1.58
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.0796.89 ▼2.9844.50 ▲2.95

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: 7 options
    • db_upgraded
    • widget_recent-comments
    • widget_statsfc_squadselector
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/statsfc-squad-selector/statsfc-squad-selector.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

statsfc-squad-selector/statsfc-squad-selector.php Passed 13 tests

The primary PHP file in "StatsFC Squad Selector" version 1.2.2 is used by WordPress to initiate all plugin functionality
22 characters long description:
StatsFC Squad Selector

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13053121
JavaScript1272

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.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 are no PNG files in this plugin