90% wpzoom-video-popup-block

Code Review | Video Popup Block by WPZOOM

WordPress plugin Video Popup Block by WPZOOM scored90%from 54 tests.

About plugin

  • Plugin page: wpzoom-video-popu...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 38.9 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /8,885 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.04MB] [CPU: ▼3.24ms] Passed 4 tests

A check of server-side resources used by Video Popup Block by WPZOOM
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.20 ▼3.97
Dashboard /wp-admin3.34 ▲0.0453.09 ▲3.24
Posts /wp-admin/edit.php3.39 ▲0.0447.21 ▼3.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.36 ▼5.23
Media Library /wp-admin/upload.php3.26 ▲0.0436.75 ▼0.35

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Video Popup Block by WPZOOM
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.65 ▼0.528.29 ▲6.0038.01 ▼6.07
Dashboard /wp-admin2,215 ▲125.80 ▲0.94100.78 ▼17.1539.89 ▼2.07
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0133.64 ▼5.2634.84 ▼1.02
Add New Post /wp-admin/post-new.php6,378 ▲4,83022.91 ▼0.26871.92 ▲207.1638.03 ▼14.11
Media Library /wp-admin/upload.php1,391 ▼124.24 ▼0.0297.39 ▼1.3644.60 ▼3.64

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
9 plugin tags: video popup, block, video block, play button, mp4...

wpzoom-video-popup-block/wpzoom-video-popup-block.php 92% from 13 tests

The main file in "Video Popup Block by WPZOOM" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.4" instead of "7.2")

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
No dangerous file extensions were detected673 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6443420
Sass210094
PHP42710780
JSON10077
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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