Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼5.11ms] Passed 4 tests
This is a short check of server-side resources used by Distinctive Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.24 ▲2.54 |
Dashboard /wp-admin | 3.50 ▲0.20 | 45.92 ▼2.16 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 51.43 ▲1.29 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 83.47 ▼21.63 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 38.13 ▲2.06 |
Distinctive Lightbox /wp-admin/options-general.php?page=distinctive-lightbox-settings | 3.39 | 31.19 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Distinctive Lightbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.51 ▲0.24 | 4.64 ▲3.07 | 44.94 ▲5.24 |
Dashboard /wp-admin | 2,203 ▲23 | 5.51 ▼0.14 | 82.74 ▼7.56 | 39.91 ▼3.79 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.04 ▲0.06 | 36.63 ▼4.74 | 36.63 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.47 ▲0.70 | 661.25 ▲31.38 | 63.54 ▲5.76 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.18 ▼0.03 | 93.35 ▼16.63 | 43.17 ▼0.75 |
Distinctive Lightbox /wp-admin/options-general.php?page=distinctive-lightbox-settings | 1,191 | 1.84 | 23.07 | 28.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/distinctive-lightbox/distinctive-lightbox.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
distinctive-lightbox/distinctive-lightbox.php Passed 13 tests
"Distinctive Lightbox" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
A lightweight, pure JS lightbox which supports beautiful galleries and also YouTube/Vimeo videos.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin899 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 206 | 336 | 894 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 5 | 12.82% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 16 | |
▷ Named functions | 14 | 87.50% |
▷ Anonymous functions | 2 | 12.50% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected