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.44MB] [CPU: ▲0.73ms] Passed 4 tests
An overview of server-side resources used by LightGallery WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 45.48 ▲1.09 |
Dashboard /wp-admin | 3.75 ▲0.44 | 50.53 ▼0.76 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 51.85 ▲6.99 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 86.80 ▼0.99 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 35.93 ▲3.59 |
Add New /wp-admin/post-new.php?post_type=lightgalleries | 3.74 | 54.04 |
LightGallery /wp-admin/edit.php?post_type=lightgalleries | 3.71 | 43.84 |
Gutenberg Settings /wp-admin/edit.php?post_type=lightgalleries&page=gutenberg_settings | 3.65 | 38.80 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for LightGallery WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲220 | 13.67 ▼1.00 | 8.65 ▲6.93 | 36.34 ▼9.13 |
Dashboard /wp-admin | 2,237 ▲49 | 4.86 ▼0.03 | 108.81 ▼5.88 | 41.47 ▼4.79 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.97 ▼0.05 | 40.78 ▲4.88 | 36.14 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.39 ▲0.24 | 633.22 ▼43.84 | 49.18 ▼4.59 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.16 ▼0.13 | 97.78 ▼7.05 | 42.03 ▼0.50 |
Add New /wp-admin/post-new.php?post_type=lightgalleries | 2,845 | 3.72 | 77.51 | 60.58 |
LightGallery /wp-admin/edit.php?post_type=lightgalleries | 1,084 | 1.95 | 29.66 | 28.18 |
Gutenberg Settings /wp-admin/edit.php?post_type=lightgalleries&page=gutenberg_settings | 2,029 | 2.10 | 29.63 | 46.05 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lightgallerywp/features/upgrade-banner.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/lightgallerywp/features/gutenberg/script-js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/lightgallerywp/features/custom-gallery/justified-gallery-js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/lightgallerywp/features/gutenberg/justified-gallery-js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function LightGallery\\add_shortcode() in wp-content/plugins/lightgallerywp/features/custom-gallery/shortcode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightgallerywp/features/custom-gallery/invoke-script.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/lightgallerywp/features/custom-gallery/script-inline-js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightgallerywp/features/invoke-scripts.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightgallerywp/features/invoke-scripts.php:60
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/lightgallerywp/features/custom-gallery/script-js.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function LightGallery\\add_action() in wp-content/plugins/lightgallerywp/features/gutenberg/settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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 require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in lightgallerywp/assets to your readme.txt
lightgallerywp/lightgallerywp.php Passed 13 tests
Analyzing the main PHP file in "LightGallery WP" version 1.0.5
43 characters long description:
Full featured gallery plugin for WordPress.
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
Good job! No executable or dangerous file extensions detected4,543 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 282 | 11 | 1,885 |
PHP | 24 | 96 | 336 | 1,710 |
JavaScript | 7 | 35 | 271 | 893 |
SVG | 2 | 0 | 0 | 55 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 53.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 10.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 15 | 71.43% |
▷ Anonymous functions | 6 | 28.57% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin