Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.77MB] [CPU: ▼174.95ms] Passed 4 tests
Analyzing server-side resources used by Rocket Galleries
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.01 | 25.74 ▲3.29 |
Dashboard /wp-admin | 2.88 ▼0.18 | 13.88 ▼24.31 |
Posts /wp-admin/edit.php | 2.88 ▼0.23 | 13.62 ▼31.47 |
Add New Post /wp-admin/post-new.php | 2.88 ▼2.56 | 15.07 ▼635.27 |
Media Library /wp-admin/upload.php | 2.88 ▼0.12 | 14.68 ▼8.75 |
Add New /wp-admin/admin.php?page=rocketgalleries_add_gallery | 2.88 | 12.91 |
Settings /wp-admin/admin.php?page=rocketgalleries_edit_settings | 2.88 | 17.04 |
Extensions /wp-admin/admin.php?page=rocketgalleries_extensions | 2.88 | 14.75 |
All Galleries /wp-admin/admin.php?page=rocketgalleries_edit_galleries | 2.88 | 15.28 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 3 new options
New tables |
---|
wp_rocketgalleries |
New WordPress options |
---|
rocketgalleries_disable_welcome_panel |
rocketgalleries_version |
rocketgalleries_settings |
Browser metrics Passed 4 tests
Rocket Galleries: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲170 | 15.31 ▲0.24 | 8.08 ▲2.42 | 95.29 ▲12.22 |
Dashboard /wp-admin | 2,980 ▲84 | 6.14 ▼0.02 | 119.44 ▼14.20 | 170.05 ▼4.19 |
Posts /wp-admin/edit.php | 2,788 ▲48 | 3.24 ▲0.02 | 64.75 ▲0.65 | 133.33 ▼11.59 |
Add New Post /wp-admin/post-new.php | 3,771 ▼45 | 18.17 ▼0.67 | 502.89 ▼10.11 | 189.60 ▲5.05 |
Media Library /wp-admin/upload.php | 1,800 ▲48 | 5.50 ▼0.04 | 156.03 ▲12.99 | 198.37 ▲16.37 |
Add New /wp-admin/admin.php?page=rocketgalleries_add_gallery | 1,524 | 4.21 | 73.42 | 117.11 |
Settings /wp-admin/admin.php?page=rocketgalleries_edit_settings | 1,550 | 4.27 | 69.67 | 131.35 |
Extensions /wp-admin/admin.php?page=rocketgalleries_extensions | 1,380 | 4.20 | 69.90 | 116.84 |
All Galleries /wp-admin/admin.php?page=rocketgalleries_edit_galleries | 1,834 | 4.24 | 68.80 | 126.06 |
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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/rocket-galleries/rocketgalleries.php+1297
Function create_function() is deprecated
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rocketgalleries_edit_galleries
- > Deprecated in wp-content/plugins/rocket-galleries/rocketgalleries.php+1298
Function create_function() is deprecated
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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/rocket-galleries/backbone/gallery-thumbnail.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/rocket-galleries/admin/edit-settings.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/rocket-galleries/admin/edit-settings.php on line 3
- > PHP Notice
Undefined variable: page in wp-content/plugins/rocket-galleries/admin/edit-gallery.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rocket-galleries/backbone/gallery-media-sidebar.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rocket-galleries/rocketgalleries.php:93
- > PHP Notice
Undefined variable: tab in wp-content/plugins/rocket-galleries/admin/edit-settings.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rocket-galleries/admin/edit-settings_general.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function rocketgalleries_the_gallery_id() in wp-content/plugins/rocket-galleries/templates/rocketgalleries-gallery.php:10
- > PHP Notice
Undefined variable: page in wp-content/plugins/rocket-galleries/admin/edit-settings.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/rocket-galleries/admin/list-galleries.php:10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
rocket-galleries/rocketgalleries.php 85% from 13 tests
"Rocket Galleries" version 0.2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("rocket-galleries.php" instead of "rocketgalleries.php")
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,260 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 731 | 1,084 | 1,701 |
CSS | 4 | 29 | 36 | 370 |
JavaScript | 2 | 110 | 122 | 189 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 28.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 86 | |
▷ Static methods | 12 | 13.95% |
▷ Public methods | 82 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.65% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete_icon@2x.png | 4.48KB | 2.56KB | ▼ 42.76% |
images/delete_icon.png | 2.57KB | 1.46KB | ▼ 43.29% |