10% videoadshtml5

Code Review | VideoADShtml5

WordPress plugin VideoADShtml5 scored10%from 54 tests.

About plugin

  • Plugin page: videoadshtml5
  • Plugin version: 2.3.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2020
  • Latest release: Apr 14, 2023
  • Number of updates: 72
  • Update frequency: every 13.6 days
  • Top authors: saucykiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,511 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
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
    Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static

Server metrics [RAM: ▼1.80MB] [CPU: ▼56.53ms] Passed 4 tests

This is a short check of server-side resources used by VideoADShtml5
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.275.67 ▼36.56
Dashboard /wp-admin2.22 ▼1.136.10 ▼56.38
Posts /wp-admin/edit.php2.22 ▼1.146.19 ▼45.07
Add New Post /wp-admin/post-new.php2.22 ▼3.677.06 ▼88.12
Media Library /wp-admin/upload.php2.22 ▼1.017.12 ▼27.33
VideoADShtml5 /wp-admin/options-general.php?page=videhtml5ads-settings2.226.52

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for VideoADShtml5
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.85 ▼0.428.89 ▲6.8036.74 ▼7.63
Dashboard /wp-admin2,199 ▲215.63 ▼0.0686.84 ▼25.6340.44 ▼8.41
Posts /wp-admin/edit.php2,107 ▲42.01 ▲0.0337.18 ▲1.7236.69 ▲0.27
Add New Post /wp-admin/post-new.php1,529 ▲323.41 ▲0.53670.83 ▼19.4857.64 ▲8.59
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.06101.35 ▼5.9647.65 ▲0.88
VideoADShtml5 /wp-admin/options-general.php?page=videhtml5ads-settings9212.0126.0535.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
    Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=videhtml5ads-settings
    • > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
    Accessing static property VIDEO_HTML5_ADS::$plugin_version as non static
    • > GET request to /wp-admin/options-general.php?page=videhtml5ads-settings
    • > Notice in wp-content/plugins/videoadshtml5/videoadshtml5.php+35
    Undefined property: VIDEO_HTML5_ADS::$plugin_version

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Preview of the VideoADShtml5 video player), #2 (Video ADS html 5 video Player settings in template), #3 (Example of use in adding material)
You can look at the official readme.txt

videoadshtml5/videoadshtml5.php 85% from 13 tests

Analyzing the main PHP file in "VideoADShtml5" version 2.3.6
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Everything looks great! No dangerous files found in this plugin1,008 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP112444492
JavaScript18818318
CSS12630156
XML10042

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.34MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png51.17KB20.07KB▼ 60.77%
screenshot-1.png283.51KB145.89KB▼ 48.54%
screenshot-3.png17.68KB8.24KB▼ 53.41%