Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.37ms] Passed 4 tests
Server-side resources used by Product Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.54 ▼39.94 |
Dashboard /wp-admin | 2.05 ▼1.25 | 4.48 ▼43.66 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 6.33 ▼39.57 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.83 | 5.07 ▼90.32 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.35 ▼26.11 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_widget_rnd_product_view |
widget_widget_rnd_category_view |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Product Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲227 | 14.04 ▼0.33 | 5.58 ▲3.72 | 37.03 ▼1.88 |
Dashboard /wp-admin | 2,244 ▲53 | 4.92 ▼0.98 | 111.01 ▲9.30 | 80.99 ▲35.14 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.01 ▼0.01 | 36.81 ▼4.31 | 33.18 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,561 ▲19 | 18.22 ▲0.03 | 678.27 ▲15.44 | 65.86 ▲7.54 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.26 ▲0.07 | 98.96 ▼4.84 | 75.28 ▲32.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_widget_rnd_category_view
- widget_theysaidso_widget
- can_compress_scripts
- widget_widget_rnd_product_view
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
- 5× 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/product-gallery/product-gallery-categories.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-gallery/product-gallery-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/product-gallery/product-gallery.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-gallery/product-gallery-post.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/product-gallery/product-gallery-shortcode.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: image gallery, product gallery, lightbox gallery, category gallery
product-gallery/product-gallery.php Passed 13 tests
"Product Gallery" version 6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
73 characters long description:
Responsive ( BOOTSTRAP ) Products Gallery view on Footer, Page & Sidebar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected924 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 132 | 144 | 748 |
CSS | 3 | 14 | 26 | 142 |
JavaScript | 1 | 0 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |
images/previous.png | 8.46KB | 4.06KB | ▼ 51.99% |
images/next.png | 8.58KB | 4.10KB | ▼ 52.18% |
images/icon.png | 3.43KB | 0.87KB | ▼ 74.77% |