Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼297.11ms] Passed 4 tests
A check of server-side resources used by Acclectic Lightbox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 92.02 ▲34.57 |
Dashboard /wp-admin | 3.41 ▲0.01 | 34.90 ▲1.48 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 43.49 ▲3.19 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 100.03 ▼1,191.86 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 25.74 ▼1.23 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Acclectic Lightbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,010 ▲288 | 18.57 ▲2.87 | 22.53 ▲16.85 | 2.69 ▲0.41 |
Dashboard /wp-admin | 2,881 ▲20 | 6.09 ▼0.11 | 119.93 ▼37.18 | 212.54 ▲51.77 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.01 | 63.53 ▼1.78 | 146.87 ▼51.45 |
Add New Post /wp-admin/post-new.php | 1,754 ▲43 | 21.50 ▲0.69 | 453.29 ▼26.36 | 184.75 ▲11.36 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.51 ▲0.03 | 150.92 ▲12.63 | 236.74 ▲41.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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)
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings 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/strings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acclectic-lightbox/inc/plugin.php on line 17
- > 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
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
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
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(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
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
acclectic-lightbox/acclectic-lightbox.php Passed 13 tests
The main file in "Acclectic Lightbox" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous 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
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
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