Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲4.14ms] 75% from 4 tests
Server-side resources used by Image Gallery - Lightbox Gallery, Responsive Photo Gallery, Masonry Gallery
Please fix the following
- CPU: Total CPU usage must kept under 500.00ms (currently 655.70ms on /wp-admin/edit.php?post_type=image_gallery&page=fp-page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 43.26 ▲7.21 |
Dashboard /wp-admin | 3.87 ▲0.56 | 61.24 ▲13.76 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 48.90 ▲4.74 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 85.95 ▼0.19 |
Media Library /wp-admin/upload.php | 3.73 ▲0.49 | 36.93 ▲4.80 |
Our Theme /wp-admin/edit.php?post_type=image_gallery&page=ig-sr-theme-page | 3.70 | 33.71 |
Docs /wp-admin/edit.php?post_type=image_gallery&page=ig-sr-doc-page | 3.70 | 34.88 |
Add Image Gallery /wp-admin/post-new.php?post_type=image_gallery | 3.97 | 49.38 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.80 | 39.61 |
All Image Gallery /wp-admin/edit.php?post_type=image_gallery | 3.73 | 34.88 |
Featured Plugins /wp-admin/edit.php?post_type=image_gallery&page=fp-page | 4.07 | 655.70 |
Server storage [IO: ▲4.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Image Gallery - Lightbox Gallery, Responsive Photo Gallery, Masonry Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲187 | 13.46 ▼0.68 | 8.23 ▲6.51 | 42.09 ▲0.77 |
Dashboard /wp-admin | 2,272 ▲94 | 5.57 ▼0.08 | 88.07 ▼14.63 | 43.47 ▲0.18 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.03 ▼0.00 | 35.49 ▼1.40 | 35.85 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,592 ▲57 | 23.05 ▲4.65 | 678.45 ▲28.60 | 55.45 ▼11.62 |
Media Library /wp-admin/upload.php | 1,488 ▲85 | 4.30 ▲0.11 | 93.92 ▼5.69 | 46.76 ▲1.87 |
Our Theme /wp-admin/edit.php?post_type=image_gallery&page=ig-sr-theme-page | 1,013 | 2.18 | 25.25 | 77.40 |
Docs /wp-admin/edit.php?post_type=image_gallery&page=ig-sr-doc-page | 957 | 2.02 | 25.14 | 43.63 |
Add Image Gallery /wp-admin/post-new.php?post_type=image_gallery | 2,626 | 3.85 | 73.06 | 101.40 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,084 | 2.05 | 23.19 | 30.62 |
All Image Gallery /wp-admin/edit.php?post_type=image_gallery | 1,167 | 1.98 | 35.56 | 34.17 |
Featured Plugins /wp-admin/edit.php?post_type=image_gallery&page=fp-page | 4,340 | 1.83 | 29.98 | 220.58 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=image_gallery
- > Notice in wp-content/plugins/new-image-gallery/new-image-gallery.php+121
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=image_gallery
- > Notice in wp-content/plugins/new-image-gallery/new-image-gallery.php+121
Trying to access array offset on value of type null
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/new-image-gallery/include/docs.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-image-gallery/include/nig-bootstrap-lightbox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/new-image-gallery/class-tgm-plugin-activation.php:2129
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/new-image-gallery/featured-plugins/featured-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/new-image-gallery/new-image-gallery.php:445
- > PHP Notice
Undefined variable: image_gallery_id in wp-content/plugins/new-image-gallery/include/nig-no-lightbox.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/new-image-gallery/our-theme/awp-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/new-image-gallery/include/gallery-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/new-image-gallery/include/shortcode.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/new-image-gallery/include/nig-no-lightbox.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=ig-sr-theme-page
- > Network (severe)
wp-content/plugins/new-image-gallery/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-2.html - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=image_gallery&page=fp-page
- > Network (severe)
wp-content/plugins/new-image-gallery/featured-plugins/fonts/bootstrap/glyphicons-halflings-regular-3.html - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #12 in new-image-gallery/assets to your readme.txt
new-image-gallery/new-image-gallery.php Passed 13 tests
Analyzing the main PHP file in "Image Gallery - Lightbox Gallery, Responsive Photo Gallery, Masonry Gallery" version 1.4.2
87 characters long description:
The best image gallery plugin with responsive design multiple columns lightbox preview.
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
There were no executable files found in this plugin37,452 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 4,251 | 8,604 | 28,680 |
PHP | 10 | 633 | 1,770 | 3,504 |
JavaScript | 10 | 694 | 1,022 | 3,309 |
SVG | 3 | 0 | 0 | 1,628 |
PO File | 2 | 156 | 170 | 331 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 43.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 5 | 4.13% |
▷ Public methods | 96 | 79.34% |
▷ Protected methods | 25 | 20.66% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.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
10 compressed PNG files occupy 1.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/lightbox/bootstrap/images/next.png | 1.32KB | 1.58KB | 0.00% |
include/lightbox/ld-lightbox/images/next.png | 1.32KB | 1.58KB | 0.00% |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |
include/lightbox/bootstrap/images/close.png | 0.27KB | 0.29KB | 0.00% |
include/lightbox/ld-lightbox/images/close.png | 0.27KB | 0.29KB | 0.00% |