Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.84ms] Passed 4 tests
This is a short check of server-side resources used by GWL Variation Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.43 ▲0.73 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.91 ▼8.83 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.31 ▼4.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 92.69 ▲12.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.95 ▼2.76 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GWL Variation Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲105 | 13.98 ▲0.74 | 8.86 ▲7.16 | 41.47 ▼4.22 |
Dashboard /wp-admin | 2,213 ▲7 | 5.85 ▲1.00 | 96.36 ▼22.34 | 39.25 ▼3.12 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.05 ▲0.03 | 39.48 ▲4.35 | 39.92 ▲5.22 |
Add New Post /wp-admin/post-new.php | 1,524 ▼10 | 21.40 ▼1.77 | 663.70 ▼9.42 | 51.55 ▲1.94 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.28 ▲0.09 | 96.27 ▼0.23 | 41.61 ▼2.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gwl-variation-gallery/public/partials/gwl-variation-gallery-public-display.php
- > /wp-content/plugins/gwl-variation-gallery/admin/partials/gwl-variation-gallery-template.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gwl-variation-gallery/admin/partials/gwl-variation-gallery-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Backend), #2 (Full Product), #3 (Gray Variation), #4 (Green Variation)
gwl-variation-gallery/gwl-variation-gallery.php Passed 13 tests
This is the main PHP file of "GWL Variation Gallery" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
93 characters long description:
Add gallery images for variable product. You can add different images on different variation.
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 detected496 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 123 | 466 | 303 |
JavaScript | 4 | 32 | 5 | 173 |
CSS | 2 | 1 | 4 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/FullProduct.png | 86.91KB | 27.70KB | ▼ 68.13% |
screenshots/GrayVariation.png | 88.43KB | 28.11KB | ▼ 68.21% |
screenshots/GreenVarition.png | 90.85KB | 28.43KB | ▼ 68.71% |
screenshots/Backend.png | 86.66KB | 24.97KB | ▼ 71.19% |