Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.50ms] Passed 4 tests
A check of server-side resources used by Advanced Images Gallery With Lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.65 ▼3.59 |
Dashboard /wp-admin | 3.34 ▼0.01 | 54.31 ▼13.42 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.11 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.65 ▼22.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.06 ▼2.41 |
Add New Gallery /wp-admin/post-new.php?post_type=aigwl_gallery | 3.40 | 48.90 |
All Galleries /wp-admin/edit.php?post_type=aigwl_gallery | 3.31 | 32.01 |
Server storage [IO: ▲7.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Images Gallery With Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲191 | 13.59 ▼0.69 | 12.74 ▲11.09 | 44.50 ▲5.70 |
Dashboard /wp-admin | 2,224 ▲47 | 5.60 ▼0.07 | 97.15 ▲4.93 | 43.27 ▲2.31 |
Posts /wp-admin/edit.php | 2,129 ▲32 | 1.99 ▲0.03 | 40.01 ▲1.23 | 37.06 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.22 ▲0.08 | 643.58 ▼65.65 | 49.30 ▼15.65 |
Media Library /wp-admin/upload.php | 1,429 ▲32 | 4.18 ▲0.05 | 95.53 ▼12.56 | 41.58 ▼1.33 |
Add New Gallery /wp-admin/post-new.php?post_type=aigwl_gallery | 1,821 | 3.65 | 64.88 | 81.75 |
All Galleries /wp-admin/edit.php?post_type=aigwl_gallery | 1,098 | 1.96 | 31.04 | 28.88 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/hexagonal-gallery.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/masonary-gallery.php:2
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Images_Gallery_With_Lightbox' not found in wp-content/plugins/advanced-images-gallery-with-lightbox/admin/partials/advanced-images-gallery-with-lightbox-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/fullwidth-gallery.php:3
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Images_Gallery_With_Lightbox' not found in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/advanced-images-gallery-with-lightbox-public-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/diamond-gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/grid-gallery.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/advanced-images-gallery-with-lightbox/public/partials/slick-slider.php:2
- > PHP Fatal error
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
6 plugin tags: slider, gallery with fancybox, advance images gallery with fancybox, gallery, image gallery...
advanced-images-gallery-with-lightbox/advanced-images-gallery-with-lightbox.php Passed 13 tests
The main PHP file in "Advanced Images Gallery With Lightbox" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Advanced Images Gallery With Lightbox is the leading plugin for building responsive galleries with Fancybox & Different Layouts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,435 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 60 | 35 | 1,444 |
PHP | 18 | 172 | 558 | 700 |
JavaScript | 8 | 37 | 119 | 232 |
SVG | 1 | 0 | 1 | 59 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 7.47MB with 5.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/fullwidth-gallery.png | 1,516.43KB | 288.95KB | ▼ 80.95% |
admin/images/diamond-gallery.png | 1,275.22KB | 249.91KB | ▼ 80.40% |
admin/images/grid-gallery.png | 1,921.63KB | 383.90KB | ▼ 80.02% |
public/images/previous.png | 0.41KB | 0.34KB | ▼ 17.38% |
admin/images/hexagonal-gallery.png | 630.49KB | 135.48KB | ▼ 78.51% |