78% the-video-popup

Code Review | The Video Popup

WordPress plugin The Video Popup scored78%from 54 tests.

About plugin

  • Plugin page: the-video-popup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-4.0
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Apr 15, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: singhsivam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by The Video Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.24 ▼7.27
Dashboard /wp-admin3.34 ▼0.0151.40 ▼9.04
Posts /wp-admin/edit.php3.39 ▲0.0341.18 ▼7.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.33 ▼7.10
Media Library /wp-admin/upload.php3.26 ▲0.0335.22 ▼1.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

The Video Popup: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,745 ▲99922.55 ▲8.17186.90 ▲185.4340.78 ▲0.71
Dashboard /wp-admin2,219 ▲315.82 ▲0.95100.69 ▼8.4335.11 ▼10.52
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0140.17 ▲3.8334.26 ▼4.77
Add New Post /wp-admin/post-new.php1,527 ▲817.48 ▼5.83611.27 ▼58.9753.33 ▼0.99
Media Library /wp-admin/upload.php1,401 ▲134.18 ▲0.0094.09 ▼18.6542.19 ▼7.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/the-video-popup/tvpp/pop-up-css.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/the-video-popup/main.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-video-popup/admin.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: popup, video

the-video-popup/main.php 92% from 13 tests

The entry point to "The Video Popup" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("the-video-popup.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39018192
JavaScript11059

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.52
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tvpp/minus.png0.32KB0.36KB0.00%
tvpp/plus.png0.71KB0.56KB▼ 20.78%