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.17MB] [CPU: ▲1.35ms] Passed 4 tests
Analyzing server-side resources used by Bootstrap Multi-language Responsive Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.43 ▲6.32 |
Dashboard /wp-admin | 3.47 ▲0.17 | 51.50 ▼0.17 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 49.93 ▲1.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.92 ▼2.63 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 45.39 ▲9.04 |
Add New Item /wp-admin/post-new.php?post_type=gallery | 3.53 | 58.61 |
Gallery /wp-admin/edit.php?post_type=gallery | 3.42 | 50.03 |
Gallery Settings /wp-admin/edit.php?post_type=gallery&page=gallery-settings | 3.36 | 39.80 |
Server storage [IO: ▲6.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 12 new options
New WordPress options |
---|
gallery_layout |
db_upgraded |
gallery_title |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
gallery_order |
widget_theysaidso_widget |
gallery_post_count |
gallery_content |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap Multi-language Responsive Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲274 | 14.19 ▼0.16 | 12.27 ▲10.61 | 49.72 ▲5.15 |
Dashboard /wp-admin | 2,246 ▲58 | 4.83 ▼0.05 | 102.22 ▼1.19 | 39.04 ▼3.03 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.99 ▼0.06 | 33.95 ▼7.29 | 37.02 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,543 ▲1 | 17.59 ▼0.69 | 685.27 ▲74.76 | 54.28 ▲1.93 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 4.24 ▲0.04 | 110.04 ▲9.90 | 50.03 ▲7.70 |
Add New Item /wp-admin/post-new.php?post_type=gallery | 2,484 | 7.62 | 178.73 | 67.92 |
Gallery /wp-admin/edit.php?post_type=gallery | 1,138 | 1.93 | 30.66 | 31.93 |
Gallery Settings /wp-admin/edit.php?post_type=gallery&page=gallery-settings | 1,004 | 2.19 | 25.59 | 40.50 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bootstrap-multi-language-responsive-gallery/gallery-shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bootstrap-multi-language-responsive-gallery/gallery.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bootstrap-multi-language-responsive-gallery/content-gallery.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bootstrap-multi-language-responsive-gallery/template-gallery.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bootstrap-multi-language-responsive-gallery/wpt-posttype-gallery.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Two Column Gallery Page.), #2 (Gallery Colorbox.), #3 (Three Column Gallery Page.), #4 (Four Column Gallery Page.), #5 (Gallery Section Generated From Shortcode.), #6 (Gallery Listing In Admin Area.), #7 (Admin Settings.)
bootstrap-multi-language-responsive-gallery/gallery.php 85% from 13 tests
The entry point to "Bootstrap Multi-language Responsive Gallery" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bootstrap-multi-language-responsive-gallery.php" instead of "gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin8,519 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 21 | 26 | 6,058 |
JavaScript | 3 | 194 | 84 | 823 |
SVG | 2 | 0 | 0 | 749 |
PHP | 5 | 232 | 92 | 576 |
HTML | 1 | 33 | 54 | 313 |
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.27 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 4.96MB with 3.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 379.46KB | 102.29KB | ▼ 73.04% |
images/three-column.png | 3.23KB | 0.63KB | ▼ 80.54% |
screenshot-4.png | 632.45KB | 160.16KB | ▼ 74.68% |
screenshot-7.png | 83.75KB | 24.99KB | ▼ 70.17% |
screenshot-6.png | 137.32KB | 37.14KB | ▼ 72.95% |