90% video-play-on-image

Code Review | Video Play On Image

WordPress plugin Video Play On Image scored90%from 54 tests.

About plugin

  • Plugin page: video-play-on-image
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2023
  • Latest release: Mar 9, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: kaka2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Video Play On Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.38 ▼3.88
Dashboard /wp-admin3.31 ▼0.0448.98 ▼16.33
Posts /wp-admin/edit.php3.36 ▲0.0049.04 ▼10.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.13 ▼16.22
Media Library /wp-admin/upload.php3.23 ▲0.0034.12 ▼6.25

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Video Play On Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.17 ▼0.401.82 ▲0.1345.02 ▲1.96
Dashboard /wp-admin2,200 ▲295.57 ▲0.01102.92 ▲14.7241.21 ▲0.70
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0638.31 ▼1.4636.38 ▼1.52
Add New Post /wp-admin/post-new.php1,539 ▲1323.30 ▲0.21665.05 ▼22.7458.89 ▲1.60
Media Library /wp-admin/upload.php1,411 ▲144.16 ▼0.0396.57 ▼10.7043.85 ▼2.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: video play on image, video player, elementor video player widget, elementor video player, video player plugin...

video-play-on-image/video-play-on-image.php 92% from 13 tests

The main file in "Video Play On Image" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin295 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36534226
CSS17169

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods233.33%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG files were detected