Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.93ms] Passed 4 tests
Analyzing server-side resources used by GB Gallery Slideshow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.89 ▼0.68 |
Dashboard /wp-admin | 3.51 ▲0.20 | 47.45 ▲1.14 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.94 ▲2.16 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 85.23 ▼17.54 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.87 ▲1.38 |
ShortCode Generator /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_shortcode.php | 3.42 | 34.15 |
GBGallery admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery-admin.php | 3.39 | 33.35 |
Add Image /wp-admin/post-new.php?post_type=gb_gallery_post | 3.55 | 54.33 |
Group Admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_group-admin.php | 3.41 | 32.99 |
Special Effect Admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_effect-admin.php | 3.41 | 33.84 |
GB Gallery /wp-admin/edit.php?post_type=gb_gallery_post | 3.47 | 34.96 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gb_gallery_group_post |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
gb_gallery_help |
widget_recent-posts |
widget_gb_gallery_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GB Gallery Slideshow
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲280 | 13.78 ▼0.60 | 4.94 ▲2.66 | 38.15 ▼15.12 |
Dashboard /wp-admin | 2,326 ▲138 | 5.89 ▲1.03 | 101.81 ▼5.65 | 77.15 ▲33.01 |
Posts /wp-admin/edit.php | 2,207 ▲121 | 2.05 ▲0.06 | 37.60 ▲3.72 | 33.66 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,590 ▲57 | 23.10 ▼0.15 | 766.96 ▲125.89 | 39.04 ▼22.54 |
Media Library /wp-admin/upload.php | 1,542 ▲151 | 4.21 ▲0.02 | 99.31 ▲1.66 | 78.62 ▲36.00 |
ShortCode Generator /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_shortcode.php | 1,333 | 2.35 | 35.92 | 38.11 |
GBGallery admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery-admin.php | 1,005 | 1.76 | 26.62 | 28.28 |
Add Image /wp-admin/post-new.php?post_type=gb_gallery_post | 2,441 | 7.84 | 167.00 | 151.26 |
Group Admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_group-admin.php | 1,043 | 1.86 | 26.23 | 32.94 |
Special Effect Admin /wp-admin/admin.php?page=gb-gallery-slideshow/admin/GBgallery_effect-admin.php | 1,199 | 2.16 | 25.47 | 28.92 |
GB Gallery /wp-admin/edit.php?post_type=gb_gallery_post | 1,187 | 2.00 | 37.34 | 28.69 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_gb_gallery_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gb-gallery-slideshow/admin/GBgallery_effect-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/gb-gallery-slideshow/admin/GBgallery-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gb-gallery-slideshow/gbgallery/the_gallery.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gb-gallery-slideshow/GBgallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gb-gallery-slideshow/GBgallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gb-gallery-slideshow/admin/GBgallery_shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/gb-gallery-slideshow/admin/GBgallery_group-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Tested up to: The plugin version is formatted incorrectly
gb-gallery-slideshow/GBgallery.php 92% from 13 tests
The main PHP script in "GB Gallery Slideshow" version 1.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gb-gallery-slideshow.php" instead of "GBgallery.php")
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
Success! There were no dangerous files found in this plugin3,945 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 105 | 57 | 1,652 |
JavaScript | 5 | 131 | 129 | 1,224 |
CSS | 2 | 33 | 29 | 1,069 |
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.28 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 9.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/PP.png | 2.36KB | 1.21KB | ▼ 48.47% |
images/admin-icon.png | 2.55KB | 1.43KB | ▼ 43.86% |
images/Q.png | 1.56KB | 0.52KB | ▼ 66.83% |
images/GB_Gallery_icon.png | 2.31KB | 1.36KB | ▼ 41.22% |