Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▼1.19ms] Passed 4 tests
Analyzing server-side resources used by Gallery Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 41.02 ▲3.27 |
Dashboard /wp-admin | 3.93 ▲0.63 | 61.65 ▲15.71 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 50.33 ▲5.33 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 84.51 ▼14.40 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 37.28 ▲1.06 |
All gallery /wp-admin/edit.php?post_type=gallery_box | 3.89 | 45.11 |
Add New gallery /wp-admin/post-new.php?post_type=gallery_box | 4.90 | 67.49 |
Server storage [IO: ▲5.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 488 new files
Database: no new tables, 11 new options
New WordPress options |
---|
vimeo_style |
youtube_style |
img_style |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Lightbox_settings |
widget_recent-posts |
iframe_style |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Gallery Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,143 ▲382 | 15.34 ▲1.06 | 9.84 ▲8.21 | 31.67 ▼8.88 |
Dashboard /wp-admin | 2,420 ▲243 | 6.40 ▲0.81 | 117.69 ▲25.53 | 46.43 ▲7.29 |
Posts /wp-admin/edit.php | 2,354 ▲254 | 3.74 ▲1.77 | 54.08 ▲16.61 | 34.57 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,610 ▲84 | 23.68 ▲0.56 | 681.71 ▲15.05 | 37.72 ▼13.57 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.67 ▲0.56 | 82.65 ▼34.38 | 46.08 ▼2.11 |
All gallery /wp-admin/edit.php?post_type=gallery_box | 1,334 | 3.75 | 48.50 | 32.02 |
Add New gallery /wp-admin/post-new.php?post_type=gallery_box | 7,243 | 8.28 | 226.76 | 162.94 |
Gallery Box settings /wp-admin/gallery-box-options.php | 26 | 0.42 | 0.13 | 13.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 11 options in the database
- youtube_style
- widget_theysaidso_widget
- img_style
- db_upgraded
- widget_recent-posts
- vimeo_style
- Lightbox_settings
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/gallery-box/admin/src/CMB2/includes/types/CMB2_Type_Title.php:13
- > PHP Warning
require_once(GALLERY_BOX_PATH/includes/all-gallery/portfolio-gallery/portfolio-script.php): failed to open stream: No such file or directory in wp-content/plugins/gallery-box/includes/all-gallery/portfolio-gallery/portfolio-gallery.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-box/includes/all-gallery/portfolio-gallery/portfolio-script.php:36
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/gallery-box/admin/src/CMB2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gallery-box/admin/gallerybox-options.php:1019
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/gallery-box/admin/src/CMB2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gallery-box/includes/all-gallery/portfolio-gallery/portfolio-style.php:128
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gallery-box/includes/gallerybox-shortcode.php:128
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gallery-box/admin/src/cmb2-select2/select2.php:20
- > PHP Warning
Use of undefined constant GALLERY_BOX_PATH - assumed 'GALLERY_BOX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-box/includes/all-gallery/iframe-gallery/iframe-gallery.php on line 12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/gallery-box-options.php
- > Network (severe)
wp-admin/gallery-box-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #4, #5 in gallery-box/assets to your readme.txt
- Tags: You are using too many tags: 13 tag instead of maximum 10
gallery-box/gallery-box.php 92% from 13 tests
"Gallery Box" version 1.7.33's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin64,973 lines of code in 303 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 106 | 3,727 | 8,265 | 14,354 |
CSS | 26 | 617 | 1,346 | 8,215 |
JSON | 5 | 0 | 0 | 4,352 |
JavaScript | 22 | 455 | 674 | 1,865 |
SVG | 3 | 1 | 0 | 1,500 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 4 | 315 | 0 | 953 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 20.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 9 | 10.71% |
▷ Concrete classes | 75 | 89.29% |
▷ Final classes | 0 | 0.00% |
Methods | 744 | |
▷ Static methods | 112 | 15.05% |
▷ Public methods | 612 | 82.26% |
▷ Protected methods | 98 | 13.17% |
▷ Private methods | 34 | 4.57% |
Functions | 86 | |
▷ Named functions | 85 | 98.84% |
▷ Anonymous functions | 1 | 1.16% |
Constants | 15 | |
▷ Global constants | 5 | 33.33% |
▷ Class constants | 10 | 66.67% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/src/CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/src/CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
images/simple-setting.png | 1.21KB | 0.85KB | ▼ 29.80% |
images/gbox-pro.png | 46.80KB | 15.55KB | ▼ 66.77% |
images/galleryBox-icon.png | 2.42KB | 1.42KB | ▼ 41.29% |