83% venobox-lightbox

Code Review | VenoBox Lightbox

WordPress plugin VenoBox Lightbox scored83%from 54 tests.

About plugin

  • Plugin page: venobox-lightbox
  • Plugin version: 2.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Sep 10, 2023
  • Number of updates: 69
  • Update frequency: every 38.3 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /24,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲0.21ms] Passed 4 tests

A check of server-side resources used by VenoBox Lightbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1640.24 ▼1.37
Dashboard /wp-admin3.50 ▲0.1748.81 ▲0.13
Posts /wp-admin/edit.php3.62 ▲0.2348.34 ▲5.54
Add New Post /wp-admin/post-new.php6.11 ▲0.1990.26 ▼0.69
Media Library /wp-admin/upload.php3.43 ▲0.1738.05 ▲2.77
VenoBox Lightbox /wp-admin/options-general.php?page=venobox3.4234.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for VenoBox Lightbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17113.61 ▼0.776.20 ▲4.6343.14 ▲3.58
Dashboard /wp-admin2,213 ▲224.83 ▼1.07107.82 ▲8.8640.64 ▼1.44
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0638.70 ▲3.8335.80 ▲4.80
Add New Post /wp-admin/post-new.php6,236 ▲4,70826.25 ▲7.95834.01 ▲152.9958.36 ▼3.84
Media Library /wp-admin/upload.php1,392 ▲74.17 ▼0.0397.90 ▲2.8742.65 ▼1.16
VenoBox Lightbox /wp-admin/options-general.php?page=venobox1,8133.2165.5833.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/venobox-lightbox/inc/options-page-wrapper.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/venobox-lightbox/inc/class-venobox-lightbox.php:56

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #5 in venobox-lightbox/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

venobox-lightbox/venobox.php 92% from 13 tests

The entry point to "VenoBox Lightbox" version 2.0.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("venobox-lightbox.php" instead of "venobox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,062 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript513095794
PHP473193732
PO File3120132305
CSS2614231

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin