89% modulobox-lite

Code Review | ModuloBox - NextGen Lightbox

WordPress plugin ModuloBox - NextGen Lightbox scored89%from 54 tests.

About plugin

  • Plugin page: modulobox-lite
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.5
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: Jul 17, 2020
  • Number of updates: 36
  • Update frequency: every 32.0 days
  • Top authors: themeone (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /9,732 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.89ms] Passed 4 tests

An overview of server-side resources used by ModuloBox - NextGen Lightbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.53 ▼4.05
Dashboard /wp-admin3.32 ▲0.0248.59 ▼2.80
Posts /wp-admin/edit.php3.44 ▲0.0851.17 ▲2.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.33 ▼15.47
Media Library /wp-admin/upload.php3.25 ▲0.0240.53 ▲4.77

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

ModuloBox - NextGen Lightbox: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4114.37 ▼0.252.86 ▲0.8542.78 ▲1.08
Dashboard /wp-admin2,225 ▲575.63 ▲0.1094.32 ▲5.2040.75 ▲0.49
Posts /wp-admin/edit.php2,129 ▲262.03 ▲0.0441.03 ▼0.4934.76 ▼5.01
Add New Post /wp-admin/post-new.php1,539 ▲923.38 ▲0.56684.06 ▲40.9353.11 ▲4.31
Media Library /wp-admin/upload.php1,429 ▲264.20 ▼0.08108.62 ▲9.9947.85 ▲4.87

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can look at the official readme.txt

modulobox-lite/modulobox.php 85% from 13 tests

"ModuloBox - NextGen Lightbox" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("modulobox-lite.php" instead of "modulobox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,612 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,0811,7803,255
CSS4941672,638
JavaScript71,3651,1972,468
PO File13945071,026
SVG43226225

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.25
Average class complexity8.90
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods145
▷ Static methods6041.38%
▷ Public methods12485.52%
▷ Protected methods00.00%
▷ Private methods2114.48%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin