Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼8.48ms] Passed 4 tests
A check of server-side resources used by Gallery Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.72 ▲4.22 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.07 ▼11.25 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 46.66 ▲1.85 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.20 ▼22.57 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.02 ▼1.93 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Gallery Lightbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,019 ▲273 | 14.03 ▼0.58 | 13.76 ▲12.14 | 56.94 ▲16.97 |
Dashboard /wp-admin | 2,218 ▲29 | 4.86 ▼0.08 | 125.37 ▲10.22 | 41.88 ▼0.58 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.03 | 36.51 ▲3.55 | 34.31 ▼1.31 |
Add New Post /wp-admin/post-new.php | 6,260 ▲4,746 | 18.65 ▲1.03 | 955.27 ▲274.71 | 57.83 ▲0.95 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.19 ▼0.00 | 96.32 ▼0.67 | 46.28 ▲2.74 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gallery-lightbox-slider/gallery-lightbox-lite.php
- > /wp-content/plugins/gallery-lightbox-slider/inc/gfg-metabox.php
- > /wp-content/plugins/gallery-lightbox-slider/inc/functions/glg-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: slider, gallery lightbox, photo gallery, free gallery, gallery...
gallery-lightbox-slider/gallery-lightbox-lite.php 92% from 13 tests
The principal PHP file in "Gallery Lightbox" v. 1.0.0.39 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-lightbox-slider.php" instead of "gallery-lightbox-lite.php")
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
Good job! No executable or dangerous file extensions detected5,262 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 277 | 99 | 2,363 |
PO File | 9 | 415 | 455 | 1,300 |
JavaScript | 5 | 262 | 169 | 923 |
PHP | 10 | 310 | 107 | 676 |
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.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/glg-icon.png | 2.96KB | 0.27KB | ▼ 90.75% |
inc/images/banners/next_level_banner.png | 56.49KB | 20.26KB | ▼ 64.15% |
inc/images/info.png | 2.01KB | 1.62KB | ▼ 19.37% |
inc/images/most_popular.png | 9.79KB | 2.77KB | ▼ 71.66% |
inc/images/banners/emg_red_728x90.png | 49.14KB | 18.06KB | ▼ 63.24% |