Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.56ms] Passed 4 tests
An overview of server-side resources used by Responsive Gallery Grid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.25 ▲5.61 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.69 ▼0.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.35 ▲1.02 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.80 ▼7.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.16 ▲1.09 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive Gallery Grid
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.67 ▲0.32 | 1.77 ▲0.31 | 38.99 ▲0.06 |
Dashboard /wp-admin | 2,210 ▲33 | 5.53 ▼0.05 | 83.12 ▼1.67 | 37.47 ▼4.88 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.98 ▼0.09 | 39.33 ▼3.14 | 37.04 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.09 ▲0.08 | 660.29 ▼0.88 | 66.41 ▲14.52 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.20 ▲0.01 | 94.59 ▼9.66 | 40.99 ▼4.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant RGG_IS_PRO - assumed 'RGG_IS_PRO' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-gallery-grid/rgg-options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/responsive-gallery-grid/responsive-gallery-grid.php:38
- > PHP Warning
require_once(RGG_PLUGIN_DIR/pro/rgg_pro_options.php): failed to open stream: No such file or directory in wp-content/plugins/responsive-gallery-grid/rgg-options.php on line 4
- > PHP Warning
Use of undefined constant RGG_PLUGIN_DIR - assumed 'RGG_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/responsive-gallery-grid/rgg-options.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'RGG_PLUGIN_DIR/pro/rgg_pro_options.php' (include_path='.:/usr/share/php') in wp-content/plugins/responsive-gallery-grid/rgg-options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-gallery-grid/gallery-shortcode.php:237
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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: A description for screenshot #0 is required in responsive-gallery-grid/assets to your readme.txt
responsive-gallery-grid/responsive-gallery-grid.php 92% from 13 tests
"Responsive Gallery Grid" version 2.3.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,422 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 327 | 208 | 1,148 |
PHP | 3 | 186 | 52 | 758 |
CSS | 7 | 77 | 56 | 502 |
SVG | 2 | 1 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 36 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/swipebox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |