Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼61.04ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Stacked Slideshow
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.31 ▼34.63 |
Dashboard /wp-admin | 2.20 ▼1.14 | 6.31 ▼57.60 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 5.79 ▼49.53 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 7.29 ▼101.19 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 5.81 ▼35.82 |
Overview /wp-admin/admin.php?page=gss-gallery-overview | 2.20 | 5.80 |
Manage Gallery /wp-admin/admin.php?page=gss-gallery-manage | 2.20 | 6.59 |
Add Gallery /wp-admin/admin.php?page=gss-gallery-add | 2.20 | 7.01 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_gallerymeta |
wp_galleryfield |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Gallery Stacked Slideshow: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.76 ▲0.60 | 1.73 ▼0.05 | 47.09 ▲4.51 |
Dashboard /wp-admin | 2,218 ▲44 | 5.59 ▲0.06 | 84.10 ▼11.50 | 76.26 ▲32.73 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 1.97 ▼0.02 | 38.16 ▲1.59 | 35.44 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,582 ▲47 | 18.06 ▼0.25 | 710.63 ▲50.87 | 53.26 ▼10.10 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.15 ▼0.04 | 98.68 ▼7.31 | 70.28 ▲25.66 |
Overview /wp-admin/admin.php?page=gss-gallery-overview | 938 | 2.01 | 26.68 | 26.68 |
Manage Gallery /wp-admin/admin.php?page=gss-gallery-manage | 1,016 | 2.03 | 25.69 | 25.55 |
Add Gallery /wp-admin/admin.php?page=gss-gallery-add | 1,174 | 3.95 | 53.85 | 94.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_galleryfield
- wp_gallerymeta
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Deprecated in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; GalleryStackedSlideshow has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Deprecated in wp-content/plugins/gallery-stacked-slideshow/tinymce/tinymce.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; gssTinyMCE has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-overview.php
- > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-details.php
- > /wp-content/plugins/gallery-stacked-slideshow/admin/gallery-manage.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GalleryStackedSlideshow' not found in wp-content/plugins/gallery-stacked-slideshow/tinymce/tinymce.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gallery-stacked-slideshow/admin/gallery-add.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gallery-stacked-slideshow/gallery-stacked-slideshow.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/gallery-stacked-slideshow/tinymce/window.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Network (severe)
wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Network (severe)
wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Network (severe)
wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=gss-gallery-add
- > Network (severe)
wp-content/plugins/gallery-stacked-slideshow/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
gallery-stacked-slideshow/gallery-stacked-slideshow.php 92% from 13 tests
The main file in "Gallery Stacked Slideshow" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected26,021 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 4,376 | 2,553 | 23,727 |
PHP | 7 | 152 | 230 | 1,197 |
CSS | 2 | 34 | 49 | 1,097 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/icon-gss.png | 3.46KB | 0.92KB | ▼ 73.53% |
images/gallery_icon_large-old.png | 2.67KB | 1.80KB | ▼ 32.82% |
images/gallery_icon_large.png | 4.66KB | 1.71KB | ▼ 63.26% |
images/icon-gss.png | 3.46KB | 0.92KB | ▼ 73.53% |
images/icon-gss-old.png | 0.98KB | 1.14KB | 0.00% |