84% video-overlay-ads

Code Review | Wordpress Video Overlay Ads

WordPress plugin Wordpress Video Overlay Ads scored84%from 54 tests.

About plugin

  • Plugin page: video-overlay-ads
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: Dec 14, 2015
  • Latest release: Aug 10, 2016
  • Number of updates: 12
  • Update frequency: every 30.0 days
  • Top authors: ensar (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /4,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.89ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Video Overlay Ads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.93 ▼10.87
Dashboard /wp-admin3.32 ▼0.0250.15 ▼12.09
Posts /wp-admin/edit.php3.37 ▲0.0247.38 ▲6.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.37 ▼16.44
Media Library /wp-admin/upload.php3.24 ▲0.0233.16 ▼8.16
Video Overlay Ads Settings /wp-admin/options-general.php?page=video-overlay-ads/main.php3.2133.02

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Video Overlay Ads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲11813.42 ▼0.947.91 ▲5.4540.38 ▼4.47
Dashboard /wp-admin2,199 ▲195.48 ▼0.1682.61 ▼17.7439.48 ▼4.25
Posts /wp-admin/edit.php2,107 ▲71.99 ▼0.0434.82 ▼4.1330.07 ▼7.13
Add New Post /wp-admin/post-new.php1,529 ▼722.91 ▲4.60680.06 ▲2.4957.13 ▼13.60
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0495.94 ▼16.7241.61 ▼5.94
Video Overlay Ads Settings /wp-admin/options-general.php?page=video-overlay-ads/main.php8752.1724.0328.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/video-overlay-ads/main.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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: youtube overlay, video overlay ad, video overlay

video-overlay-ads/main.php 92% from 13 tests

This is the main PHP file of "Wordpress Video Overlay Ads" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("video-overlay-ads.php" instead of "main.php")

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
There were no executable files found in this plugin463 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1580281
PHP161689
CSS10050
JavaScript124943

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected