10% thebestvideo-informer

Code Review | TheBestVideo

WordPress plugin TheBestVideo scored10%from 54 tests.

About plugin

  • Plugin page: thebestvideo-info...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Dec 30, 2015
  • Latest release: Feb 2, 2016
  • Number of updates: 7
  • Update frequency: every 4.9 days
  • Top authors: C-In-OFF (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /618 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/thebestvideo-informer/thebestvideo.php+200
    Undefined variable: alow_rss_error

Server metrics [RAM: ▼1.89MB] [CPU: ▼50.76ms] Passed 4 tests

A check of server-side resources used by TheBestVideo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.53 ▼36.48
Dashboard /wp-admin2.11 ▼1.196.75 ▼41.29
Posts /wp-admin/edit.php2.11 ▼1.245.90 ▼39.29
Add New Post /wp-admin/post-new.php2.11 ▼3.775.65 ▼85.97
Media Library /wp-admin/upload.php2.11 ▼1.115.97 ▼31.54

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_thebestvideo_widget
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for TheBestVideo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.541.67 ▼0.0339.17 ▼4.94
Dashboard /wp-admin2,206 ▲174.86 ▼0.07110.08 ▼11.0840.08 ▼5.47
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0339.47 ▲3.3734.83 ▲1.05
Add New Post /wp-admin/post-new.php1,522 ▲823.41 ▲5.93656.02 ▼10.9375.69 ▲16.93
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0692.39 ▼20.0239.88 ▼6.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/thebestvideo-informer/thebestvideo.php+200
    Undefined variable: alow_rss_error
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_thebestvideo_widget
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/thebestvideo-informer/thebestvideo.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #4 is missing in thebestvideo-informer/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === thebestvideo-informer === )
You can take inspiration from this readme.txt

thebestvideo-informer/thebestvideo.php 92% from 13 tests

The main PHP script in "TheBestVideo" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("thebestvideo-informer.php" instead of "thebestvideo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13319157
CSS12012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin