Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼0.67ms] Passed 4 tests
This is a short check of server-side resources used by Gallery Showcase for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.97 ▼5.40 |
Dashboard /wp-admin | 3.49 ▲0.18 | 53.23 ▼2.64 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 55.59 ▲2.58 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 105.03 ▲13.34 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.31 ▲2.77 |
All Showcases /wp-admin/edit.php?post_type=gs_layouts | 3.46 | 42.09 |
Add New /wp-admin/post-new.php?post_type=gs_layouts | 3.87 | 51.32 |
Server storage [IO: ▲2.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gallery Showcase for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲168 | 14.46 ▼0.10 | 20.10 ▲17.95 | 39.05 ▼7.78 |
Dashboard /wp-admin | 2,222 ▲42 | 5.62 ▲0.04 | 89.91 ▼13.62 | 41.62 ▼3.07 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.98 ▼0.04 | 38.29 ▲1.02 | 36.28 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,562 ▲27 | 23.29 ▲5.06 | 621.14 ▼42.29 | 58.18 ▼11.17 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.18 ▼0.04 | 102.01 ▼9.67 | 46.46 ▼1.92 |
All Showcases /wp-admin/edit.php?post_type=gs_layouts | 1,094 | 1.98 | 30.53 | 29.42 |
Add New /wp-admin/post-new.php?post_type=gs_layouts | 16,547 | 4.23 | 293.69 | 43.14 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=gs_layouts
- > Notice in wp-content/plugins/gallery-showcase/includes/add_metaboxes.php+513
Undefined index: nav_vert_off
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gallery-showcase/includes/register_posttypes.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_meta_box() in wp-content/plugins/gallery-showcase/includes/admin_menu_funcitons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/gallery-showcase/includes/add_metaboxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/gallery-showcase/includes/admin_notices.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: gallery showcase plugin, gallery shortcode, gallery, gallery showcase, gallery layouts...
gallery-showcase/gallery-showcase.php Passed 13 tests
The entry point to "Gallery Showcase for WordPress" version 1.0.9 is a PHP file that has certain tags in its header comment area
105 characters long description:
Gallery Showcase plugin allows you to manage, edit, design and create new galleries showcases or teasers.
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 detected10,831 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 733 | 855 | 3,811 |
CSS | 5 | 132 | 132 | 3,394 |
SVG | 1 | 0 | 0 | 2,672 |
JavaScript | 6 | 54 | 94 | 669 |
LESS | 1 | 32 | 1 | 285 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 120.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 370.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 191 | |
▷ Static methods | 4 | 2.09% |
▷ Public methods | 55 | 28.80% |
▷ Protected methods | 136 | 71.20% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/images/bg_fallback.png | 3.63KB | 0.30KB | ▼ 91.72% |
assets/images/fancybox/fancybox_sprite@2x.png | 6.40KB | 5.76KB | ▼ 9.96% |
includes/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/images/slider_handles.png | 4.35KB | 1.52KB | ▼ 64.97% |