Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/rocket-responsive-gallery/wp-gallery.php+20
require(wp-content/plugins/rocket-responsive-gallery/includes/functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.31ms] Passed 4 tests
Analyzing server-side resources used by WordPress Gallery Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.09 ▲1.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.31 ▲1.10 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.26 ▼6.84 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.73 ▼6.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.17 ▼1.20 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Gallery Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.30 ▼0.99 | 1.77 ▼0.35 | 44.39 ▼7.11 |
Dashboard /wp-admin | 2,209 ▲21 | 5.85 ▲0.03 | 102.48 ▼6.69 | 42.75 ▼1.41 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.02 | 33.46 ▼10.00 | 34.45 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.29 ▲5.06 | 664.33 ▲47.96 | 56.04 ▼10.60 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.22 ▲0.03 | 94.46 ▼0.41 | 41.03 ▼2.34 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rocket-responsive-gallery/views/shortcode_meta_box.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rocket-responsive-gallery/views/intro_box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/rocket-responsive-gallery/views/custom_publish_meta_box.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/rocket-responsive-gallery/views/wpgp_skins/default/gallery.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rocket-responsive-gallery/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rocket-responsive-gallery/views/banner_meta_box.php:2
- > PHP Notice
Undefined variable: post_status in wp-content/plugins/rocket-responsive-gallery/views/custom_publish_meta_box.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rocket-responsive-gallery/views/slides_meta_box.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rocket-responsive-gallery/views/options_meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rocket-responsive-gallery/wp-gallery.php:18
- > PHP Notice
Undefined variable: post_status in wp-content/plugins/rocket-responsive-gallery/views/custom_publish_meta_box.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 your attention:
- Tags: There are too many tags (47 tag instead of maximum 10)
rocket-responsive-gallery/wp-gallery.php 92% from 13 tests
The main PHP file in "WordPress Gallery Plugin" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rocket-responsive-gallery.php" instead of "wp-gallery.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
Everything looks great! No dangerous files found in this plugin1,698 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 137 | 11 | 864 |
PHP | 11 | 147 | 17 | 576 |
JavaScript | 2 | 125 | 2 | 258 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pro-banner.png | 92.13KB | 43.84KB | ▼ 52.42% |
images/sprite.png | 6.40KB | 3.00KB | ▼ 53.07% |
images/wpgp-html-feature.png | 10.60KB | 3.88KB | ▼ 63.39% |