Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.18ms] Passed 4 tests
An overview of server-side resources used by Simple Lightbox for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 39.07 ▼2.04 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.44 ▼1.18 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.47 ▲2.61 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.36 ▼14.72 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.85 ▼2.77 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Lightbox for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.38 ▲0.22 | 1.67 ▼0.03 | 38.70 ▼6.02 |
Dashboard /wp-admin | 2,198 ▲21 | 5.51 ▼0.15 | 85.05 ▼8.70 | 39.46 ▼0.44 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.95 ▼0.14 | 40.72 ▲1.38 | 34.81 ▼5.48 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.07 ▼0.31 | 596.74 ▼72.81 | 56.08 ▼0.58 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.05 | 100.35 ▼8.60 | 41.67 ▼3.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-lightbox-fslight/admin/pre-post-install.php
- > /wp-content/plugins/simple-lightbox-fslight/simple-lightbox-fslight.php
- > /wp-content/plugins/simple-lightbox-fslight/classes/RewriteFigureTagsClass.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/simple-lightbox-fslight/classes/html5-dom-document-php/src/HTML5DOMDocument.php on line 21
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/simple-lightbox-fslight/classes/html5-dom-document-php/src/HTML5DOMElement.php on line 21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: lightbox, video, gallery, image, youtube...
simple-lightbox-fslight/simple-lightbox-fslight.php 92% from 13 tests
The primary PHP file in "Simple Lightbox for WordPress" version 2.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,063 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 277 | 657 | 1,862 |
JSON | 4 | 0 | 0 | 183 |
CSS | 1 | 1 | 0 | 16 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 60.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 5.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 71.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 28.07% |
Functions | 38 | |
▷ Named functions | 6 | 15.79% |
▷ Anonymous functions | 32 | 84.21% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icon-fullscreen-white.png | 0.20KB | 0.20KB | ▼ 2.90% |