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.07MB] [CPU: ▼7.79ms] Passed 4 tests
An overview of server-side resources used by Acclectic Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.12 ▼7.56 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.31 ▼8.60 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 48.24 ▲2.16 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.77 ▼17.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.98 ▲2.99 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Acclectic Lightbox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲290 | 14.30 ▼0.28 | 14.67 ▲12.89 | 35.78 ▼15.01 |
Dashboard /wp-admin | 2,203 ▲12 | 5.84 ▼0.04 | 99.33 ▼17.16 | 40.47 ▼8.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.12 ▲0.13 | 40.08 ▲3.19 | 34.69 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.19 ▼0.13 | 668.84 ▼19.80 | 38.68 ▼15.18 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.04 | 102.59 ▲0.37 | 46.90 ▲0.40 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- 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
Good news, no errors were detected
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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'AcclecticLightbox\\Controller' not found in wp-content/plugins/acclectic-lightbox/inc/plugin.php:21
- > PHP Warning
include_once(): Failed opening 'ACCLECTIC_LIGHTBOX_PATHinc/controller.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 18
- > PHP Warning
include_once(ACCLECTIC_LIGHTBOX_PATHinc/strings.php): failed to open stream: No such file or directory in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 17
- > PHP Warning
Use of undefined constant ACCLECTIC_LIGHTBOX_PATH - assumed 'ACCLECTIC_LIGHTBOX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 18
- > PHP Warning
include_once(): Failed opening 'ACCLECTIC_LIGHTBOX_PATHinc/strings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 17
- > PHP Warning
Use of undefined constant ACCLECTIC_LIGHTBOX_PATH - assumed 'ACCLECTIC_LIGHTBOX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 17
- > PHP Warning
include_once(ACCLECTIC_LIGHTBOX_PATHinc/controller.php): failed to open stream: No such file or directory in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
acclectic-lightbox/acclectic-lightbox.php Passed 13 tests
The main PHP file in "Acclectic Lightbox" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
An EXIF-enabled lightbox that works with native Wordpress images and galleries, with GPS mapping support.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,344 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 285 | 255 | 1,247 |
PO File | 10 | 450 | 440 | 960 |
Markdown | 5 | 147 | 0 | 505 |
CSS | 1 | 69 | 27 | 446 |
PHP | 4 | 34 | 23 | 176 |
SVG | 10 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 2 | 25.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin