83% fantasy-football

Code Review | Fantasy Football

WordPress plugin Fantasy Football scored83%from 54 tests.

About plugin

  • Plugin page: fantasy-football
  • Plugin version: 3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: Jul 25, 2023
  • Number of updates: 55
  • Update frequency: every 54.6 days
  • Top authors: jdyken (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

40+ active /4,433 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 gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.45ms] Passed 4 tests

Server-side resources used by Fantasy Football
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.52 ▼7.27
Dashboard /wp-admin3.31 ▼0.0346.92 ▼18.84
Posts /wp-admin/edit.php3.37 ▲0.0151.52 ▲1.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.27 ▼16.77
Media Library /wp-admin/upload.php3.24 ▲0.0136.80 ▲1.35
FN Settings /wp-admin/options-general.php?page=ffn_settings3.2033.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fantasy Football
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6013.22 ▼1.161.81 ▲0.0444.48 ▲4.17
Dashboard /wp-admin2,228 ▲255.90 ▲1.01104.82 ▼12.1639.40 ▼6.10
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0437.12 ▲0.7335.44 ▼3.36
Add New Post /wp-admin/post-new.php1,557 ▲1223.25 ▲0.13654.05 ▼16.5655.53 ▼9.64
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.03108.35 ▲2.9547.62 ▲0.54
FN Settings /wp-admin/options-general.php?page=ffn_settings8092.0327.6128.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 20× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.5.1/tags/1.0.2/tags/1.0.1/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.5.1/tags/1.1.0/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.0.2/trunk/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.0.3/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.5.1/tags/1.0.2/trunk/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.5.1/tags/1.1.1/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.5.1/tags/1.0.3/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.0.1/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.0.2/tags/1.0/fantasy-football.php
    • > /wp-content/plugins/fantasy-football/1.5.2/tags/1.1.2/fantasy-football.php

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 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: fantasy basketball, fantasy baseball, fantasy football

fantasy-football/fantasy-football.php 69% from 13 tests

"Fantasy Football" version 3.2'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:
  • Domain Path: The domain path must begin with a forward slash character ("/")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please don't use more than 140 characters for the plugin description (currently 320 characters long)
  • Domain Path: The domain path should use only dashes and lowercase characters ("")

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
No dangerous file extensions were detected14,898 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP198002,5668,896
CSS472356,002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions942
▷ Named functions942100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.42MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png101.98KB109.25KB0.00%
assets/banner-1544x500.png328.68KB359.50KB0.00%