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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.53 ▼4.05 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.59 ▼2.80 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.17 ▲2.78 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 94.33 ▼15.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲41 | 14.37 ▼0.25 | 2.86 ▲0.85 | 42.78 ▲1.08 |
Dashboard /wp-admin | 2,225 ▲57 | 5.63 ▲0.10 | 94.32 ▲5.20 | 40.75 ▲0.49 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.03 ▲0.04 | 41.03 ▼0.49 | 34.76 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.38 ▲0.56 | 684.06 ▲40.93 | 53.11 ▲4.31 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.20 ▼0.08 | 108.62 ▲9.99 | 47.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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,081 | 1,780 | 3,255 |
CSS | 4 | 94 | 167 | 2,638 |
JavaScript | 7 | 1,365 | 1,197 | 2,468 |
PO File | 1 | 394 | 507 | 1,026 |
SVG | 4 | 32 | 26 | 225 |
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 code | 0.25 |
Average class complexity | 8.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 60 | 41.38% |
▷ Public methods | 124 | 85.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 14.48% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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