Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.51MB] [CPU: ▲7.77ms] 75% from 4 tests
A check of server-side resources used by Gallery Plugin for WordPress - Envira Photo Gallery
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,050.78ms on /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 40.39 ▼4.05 |
Dashboard /wp-admin | 5.08 ▲1.77 | 57.20 ▲7.58 |
Posts /wp-admin/edit.php | 5.13 ▲1.76 | 60.18 ▲13.78 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.77 | 108.36 ▲14.19 |
Media Library /wp-admin/upload.php | 4.94 ▲1.70 | 47.50 ▲13.78 |
Support /wp-admin/admin.php?page=envira-gallery-lite-support | 4.89 | 39.06 |
Albums /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-albums | 5.00 | 383.86 |
Addons /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-addons | 5.09 | 1,050.78 |
Add New /wp-admin/post-new.php?post_type=envira | 5.12 | 59.60 |
About Us /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-about-us | 4.93 | 43.50 |
Settings /wp-admin/edit.php?post_type=envira&page=envira-gallery-settings | 4.93 | 51.54 |
All Galleries /wp-admin/edit.php?post_type=envira | 5.01 | 48.16 |
Server storage [IO: ▲5.01MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 275 new files
Database: no new tables, 9 new options
New WordPress options |
---|
envira_gallery_review |
db_upgraded |
theysaidso_admin_options |
envira_gallery_116 |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
envira_gallery_121 |
Browser metrics Passed 4 tests
A check of browser resources used by Gallery Plugin for WordPress - Envira Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲117 | 14.25 ▼0.26 | 1.70 ▼0.00 | 41.51 ▼1.31 |
Dashboard /wp-admin | 2,259 ▲79 | 5.60 ▼0.02 | 93.39 ▲6.33 | 68.78 ▲26.42 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 1.97 ▼0.01 | 39.03 ▲1.18 | 35.08 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,739 | 19.44 ▼3.53 | 965.00 ▲320.28 | 68.66 ▲17.76 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.10 ▼0.16 | 103.78 ▲1.14 | 75.38 ▲30.19 |
Support /wp-admin/admin.php?page=envira-gallery-lite-support | 1,062 | 2.01 | 25.21 | 32.63 |
Albums /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-albums | 2,658 | 2.10 | 39.03 | 66.12 |
Addons /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-addons | 2,221 | 2.00 | 43.44 | 69.17 |
Add New /wp-admin/post-new.php?post_type=envira | 3,994 | 5.34 | 122.59 | 119.10 |
About Us /wp-admin/edit.php?post_type=envira&page=envira-gallery-lite-about-us | 2,161 | 1.88 | 28.33 | 81.09 |
Settings /wp-admin/edit.php?post_type=envira&page=envira-gallery-settings | 1,315 | 1.95 | 28.42 | 45.96 |
All Galleries /wp-admin/edit.php?post_type=envira | 1,572 | 2.38 | 39.24 | 45.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- envira_gallery_121
- envira_gallery_116
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- envira_gallery_review
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=envira-gallery-lite-support
- > Warning in wp-content/plugins/envira-gallery-lite/includes/admin/Envira_Lite_Support.php+196
Use of undefined constant FILTER_VALIDATE_BOOL - assumed 'FILTER_VALIDATE_BOOL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/admin.php?page=envira-gallery-lite-support
- > Warning in wp-content/plugins/envira-gallery-lite/includes/admin/Envira_Lite_Support.php+196
filter_var() expects parameter 2 to be int, string given
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× PHP files output text when accessed directly:
- > /wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-type.php on line 15
- > PHP Notice
Undefined variable: data in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php on line 40
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php on line 40
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-code.php:14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php on line 19
- > PHP Notice
Undefined variable: data in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-type.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Envira_Gallery_Lite' not found in wp-content/plugins/envira-gallery-lite/includes/admin/partials/notifications.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/envira-gallery-lite/includes/admin/partials/metabox-gallery-settings.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'Envira_Gallery_Common_Admin' not found in wp-content/plugins/envira-gallery-lite/includes/admin/partials/header.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: photo gallery, gallery, wordpress gallery plugin, image gallery, best gallery plugin
envira-gallery-lite/envira-gallery-lite.php Passed 13 tests
"Gallery Plugin for WordPress - Envira Photo Gallery" version 1.8.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Envira Gallery is the best responsive WordPress gallery plugin. This is the Lite version.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin30,686 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 2,137 | 4,349 | 8,670 |
JavaScript | 43 | 1,750 | 2,753 | 7,669 |
PO File | 7 | 2,386 | 2,806 | 7,088 |
Sass | 14 | 624 | 16 | 6,249 |
SVG | 48 | 1 | 4 | 668 |
CSS | 12 | 58 | 16 | 342 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 39.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 237.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 282 | |
▷ Static methods | 20 | 7.09% |
▷ Public methods | 277 | 98.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.77% |
Functions | 33 | |
▷ Named functions | 29 | 87.88% |
▷ Anonymous functions | 4 | 12.12% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
81 PNG files occupy 1.28MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/features/slideshow-icon.png | 2.27KB | 2.38KB | 0.00% |
assets/css/images/social@2x.png | 7.30KB | 2.41KB | ▼ 66.97% |
assets/images/features/social-icon.png | 4.34KB | 4.56KB | 0.00% |
assets/images/about/plugin-mi.png | 7.07KB | 4.09KB | ▼ 42.18% |
assets/images/partners/shortpixel.png | 3.11KB | 2.74KB | ▼ 12.07% |