Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼42.99ms] Passed 4 tests
An overview of server-side resources used by Multiple And Single Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.68 | 14.42 ▼28.54 |
Dashboard /wp-admin | 2.82 ▼0.48 | 19.26 ▼32.99 |
Posts /wp-admin/edit.php | 2.83 ▼0.53 | 17.77 ▼34.11 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.06 | 17.39 ▼76.32 |
Media Library /wp-admin/upload.php | 2.83 ▼0.40 | 15.32 ▼22.67 |
Gallery /wp-admin/edit.php?post_type=gallery | 2.83 | 16.27 |
Add New /wp-admin/post-new.php?post_type=gallery | 2.83 | 15.66 |
Categories /wp-admin/edit-tags.php?taxonomy=Cgallery&post_type=gallery | 2.83 | 16.76 |
Gallery Settings /wp-admin/options-general.php?page=gallery_settings | 2.83 | 17.48 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
simple_and_3d_condition |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Multiple And Single Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 14.32 ▼0.34 | 5.73 ▲4.11 | 45.31 ▼3.18 |
Dashboard /wp-admin | 2,239 ▲59 | 5.65 ▼0.02 | 85.38 ▼6.23 | 39.66 ▼3.72 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.02 ▼0.06 | 41.46 ▲1.89 | 36.34 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,574 ▲43 | 23.42 ▲0.28 | 650.70 ▼51.67 | 60.94 ▲5.07 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.20 ▲0.01 | 100.78 ▼15.94 | 46.58 ▼2.76 |
Gallery /wp-admin/edit.php?post_type=gallery | 1,122 | 1.96 | 32.70 | 31.05 |
Add New /wp-admin/post-new.php?post_type=gallery | 2,340 | 7.73 | 190.73 | 69.37 |
Categories /wp-admin/edit-tags.php?taxonomy=Cgallery&post_type=gallery | 1,312 | 2.14 | 29.60 | 30.66 |
Gallery Settings /wp-admin/options-general.php?page=gallery_settings | 838 | 2.19 | 26.10 | 29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/multiple-and-single-gallery/index.php+30
Undefined variable: labels
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- simple_and_3d_condition
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gallery_settings
- > Notice in wp-content/plugins/multiple-and-single-gallery/index.php+30
Undefined variable: labels
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gallery_settings
- > Warning in wp-content/plugins/multiple-and-single-gallery/index.php+249
Use of undefined constant gallery_settings - assumed 'gallery_settings' (this will throw an Error in a future version of PHP)
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-and-single-gallery/index.php:38
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gallery_settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/multiple-and-single-gallery/js/admin_script.js?ver=6.3.1:3:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gallery_settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=gallery
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/multiple-and-single-gallery/js/admin_script.js?ver=6.3.1:3:30)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=gallery
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: display multiple and single gallery whith shortcode
multiple-and-single-gallery/index.php 85% from 13 tests
"Multiple And Single Gallery" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multiple-and-single-gallery.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin7,731 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 29 | 17 | 4,665 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 1 | 15 | 19 | 248 |
JavaScript | 5 | 34 | 27 | 147 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/next.png | 1.32KB | 1.58KB | 0.00% |
images/prev.png | 1.33KB | 1.59KB | 0.00% |
images/close.png | 0.27KB | 0.29KB | 0.00% |