10% boingball-medaltv-shortcode

Code Review | Boingball Medal.TV ShortCode Plugin

WordPress plugin Boingball Medal.TV ShortCode Plugin scored10%from 54 tests.

About plugin

  • Plugin page: boingball-medaltv...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2021
  • Latest release: Oct 9, 2021
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: bOingball (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /324 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php+80
    Methods with the same name as their class will not be constructors in a future version of PHP; BBMedalTV_GetLatest_Post has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.67ms] Passed 4 tests

Server-side resources used by Boingball Medal.TV ShortCode Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.62 ▼34.92
Dashboard /wp-admin2.10 ▼1.215.36 ▼46.20
Posts /wp-admin/edit.php2.10 ▼1.265.51 ▼41.70
Add New Post /wp-admin/post-new.php2.10 ▼3.796.76 ▼87.86
Media Library /wp-admin/upload.php2.10 ▼1.134.99 ▼25.80
BB MedalTV Plugin /wp-admin/options-general.php?page=BBMedalTV-plugin2.104.67

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boingball Medal.TV ShortCode Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.54 ▼0.841.64 ▼0.1739.32 ▼9.90
Dashboard /wp-admin2,210 ▲194.83 ▼0.21109.39 ▼8.2544.01 ▼2.37
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0039.09 ▲2.8536.62 ▲1.92
Add New Post /wp-admin/post-new.php1,550 ▲3618.24 ▲0.60619.21 ▼56.9868.49 ▲17.03
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0193.29 ▼16.1838.71 ▼8.90
BB MedalTV Plugin /wp-admin/options-general.php?page=BBMedalTV-plugin7832.0625.2828.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php+80
    Methods with the same name as their class will not be constructors in a future version of PHP; BBMedalTV_GetLatest_Post has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=BBMedalTV-plugin
    • > Deprecated in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php+80
    Methods with the same name as their class will not be constructors in a future version of PHP; BBMedalTV_GetLatest_Post has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=BBMedalTV-plugin
    • > Deprecated in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php+174
    Function create_function() is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=BBMedalTV-plugin
    • > Notice in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php+66
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php:16

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: videos, medaltv, gaming, api

boingball-medaltv-shortcode/boingball-medaltv-shortcode-plugin.php 85% from 13 tests

The entry point to "Boingball Medal.TV ShortCode Plugin" version 1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("boingball-medaltv-shortcode.php" instead of "boingball-medaltv-shortcode-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1394394

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity7.50
▷ Minimum method complexity2.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin