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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.30MB] [CPU: ▲0.91ms] Passed 4 tests
An overview of server-side resources used by Product Designer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 43.17 ▲3.36 |
Dashboard /wp-admin | 4.64 ▲1.34 | 56.02 ▲5.05 |
Posts /wp-admin/edit.php | 4.70 ▲1.34 | 60.89 ▲11.85 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.28 | 87.53 ▼13.36 |
Media Library /wp-admin/upload.php | 4.49 ▲1.26 | 47.04 ▲8.57 |
Clip Art /wp-admin/edit.php?post_type=clipart | 4.62 | 50.32 |
Add Template /wp-admin/post-new.php?post_type=pd_template | 4.68 | 54.19 |
Product Designer /wp-admin/edit.php?post_type=pd_template | 4.62 | 44.40 |
Shape /wp-admin/edit.php?post_type=shape | 4.62 | 46.01 |
Settings /wp-admin/edit.php?post_type=pd_template&page=product_designer | 4.59 | 44.47 |
Server storage [IO: ▲5.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
product_designer_settings |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Product Designer: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,109 ▲374 | 15.73 ▲1.45 | 9.22 ▲7.46 | 37.97 ▼4.93 |
Dashboard /wp-admin | 2,400 ▲212 | 6.48 ▲1.62 | 133.40 ▲15.33 | 43.20 ▼3.11 |
Posts /wp-admin/edit.php | 2,313 ▲224 | 3.76 ▲1.71 | 53.65 ▲15.30 | 29.25 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,561 ▲28 | 23.04 ▼0.20 | 644.81 ▼36.75 | 30.43 ▼20.73 |
Media Library /wp-admin/upload.php | 1,439 ▲48 | 4.20 ▲0.02 | 84.99 ▼19.11 | 46.13 ▲0.87 |
Clip Art /wp-admin/edit.php?post_type=clipart | 1,278 | 3.63 | 48.32 | 29.70 |
Add Template /wp-admin/post-new.php?post_type=pd_template | 2,285 | 6.39 | 145.70 | 118.25 |
Product Designer /wp-admin/edit.php?post_type=pd_template | 1,267 | 3.56 | 53.33 | 27.19 |
Shape /wp-admin/edit.php?post_type=shape | 1,278 | 3.62 | 53.47 | 28.86 |
Settings /wp-admin/edit.php?post_type=pd_template&page=product_designer | 2,765 | 6.46 | 120.34 | 40.55 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- product_designer_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/product-designer/product-designer.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #10, #7, #8, #9 in product-designer/assets to your readme.txt
product-designer/product-designer.php Passed 13 tests
The main PHP file in "Product Designer" ver. 1.0.32 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Awesome Product Designer for Woo-Commenrce.
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
No dangerous file extensions were detected28,283 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 12,217 |
PHP | 18 | 3,513 | 236 | 5,821 |
CSS | 11 | 2,276 | 143 | 5,329 |
JavaScript | 11 | 2,475 | 773 | 4,916 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 98.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 12.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 77 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
5 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/front/images/placeholder.png | 19.00KB | 2.40KB | ▼ 87.35% |
assets/admin/images/add-img-overlay.png | 27.99KB | 9.53KB | ▼ 65.95% |
assets/admin/images/add-img-bg.png | 38.67KB | 10.30KB | ▼ 73.36% |
assets/admin/images/add-img.png | 31.74KB | 11.95KB | ▼ 62.35% |
assets/front/images/tile.png | 16.86KB | 0.09KB | ▼ 99.47% |