Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.18ms] Passed 4 tests
This is a short check of server-side resources used by Lightbox Gallery by Kodefix - Responsive Lightbox Effect for gallery block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 50.47 ▲10.99 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.15 ▼1.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.22 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.72 ▼18.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 44.30 ▲9.46 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Lightbox Gallery by Kodefix - Responsive Lightbox Effect for gallery block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.74 ▲0.29 | 3.36 ▲1.57 | 45.03 ▲3.62 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.11 | 94.75 ▲3.63 | 42.27 ▲2.28 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.06 | 35.62 ▼0.51 | 34.78 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.29 ▲0.35 | 686.55 ▲72.15 | 54.61 ▲7.13 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▼0.01 | 100.46 ▼13.00 | 43.58 ▼0.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/kodefix-lightbox-gallery/vendor/ivopetkov/html5-dom-document-php/src/HTML5DOMDocument.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kodefix-lightbox-gallery/lightbox-gallery-by-kodefix.php:29
- > PHP Fatal error
Trait 'IvoPetkov\\HTML5DOMDocument\\Internal\\QuerySelectors' not found in wp-content/plugins/kodefix-lightbox-gallery/vendor/ivopetkov/html5-dom-document-php/src/HTML5DOMElement.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Donate link: Invalid url: ""
kodefix-lightbox-gallery/lightbox-gallery-by-kodefix.php 77% from 13 tests
"Lightbox Gallery by Kodefix - Responsive Lightbox Effect for gallery block" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 74 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("kodefix-lightbox-gallery.php" instead of "lightbox-gallery-by-kodefix.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
Success! There were no dangerous files found in this plugin1,809 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 236 | 537 | 1,734 |
JSON | 3 | 0 | 0 | 74 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 47.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 3 | 4.69% |
▷ Public methods | 55 | 85.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 14.06% |
Functions | 36 | |
▷ Named functions | 4 | 11.11% |
▷ Anonymous functions | 32 | 88.89% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
There are no PNG files in this plugin