79% football-grid-squares

Code Review | Football Grid Squares

WordPress plugin Football Grid Squares scored 79% from 54 tests.

About plugin

  • Plugin page: football-grid-squ...
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Feb 3, 2019
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: InsightDezign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 989 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.26ms] Passed 4 tests

A check of server-side resources used by Football Grid Squares
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.56 ▼1.54
Dashboard /wp-admin3.37 ▲0.0745.25 ▼5.13
Posts /wp-admin/edit.php3.43 ▲0.0749.02 ▲4.49
Add New Post /wp-admin/post-new.php6.02 ▲0.1393.82 ▲1.97
Media Library /wp-admin/upload.php3.29 ▲0.0635.26 ▲3.68
Add New /wp-admin/post-new.php?post_type=square6.0080.42
All Squares /wp-admin/edit.php?post_type=square3.3332.87

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Football Grid Squares
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.27 ▼1.311.67 ▼0.4245.99 ▲8.39
Dashboard /wp-admin2,236 ▲485.81 ▲0.9399.99 ▼16.8342.70 ▼6.70
Posts /wp-admin/edit.php2,119 ▲302.01 ▲0.0440.78 ▲4.9437.38 ▲4.50
Add New Post /wp-admin/post-new.php1,545 ▲1223.32 ▲0.18598.92 ▼83.6955.40 ▼1.63
Media Library /wp-admin/upload.php1,415 ▲244.16 ▼0.0496.60 ▼2.3840.15 ▼2.30
Add New /wp-admin/post-new.php?post_type=square6,51622.69929.0739.99
All Squares /wp-admin/edit.php?post_type=square1,0801.9631.9729.03

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/football-grid-squares/football-grid-squares.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=square
    • > Intervention (severe) in unknown
    /wp-admin/post-new.php?post_type=square - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: superbowl squares, football squares, football grid, sports squares, sports grid

football-grid-squares/football-grid-squares.php Passed 13 tests

The main PHP file in "Football Grid Squares" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
Create single or multiple football grid squares using a simple shortcode and invite players to choose squares.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected506 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP29229357
CSS237137
JavaScript23612

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin