84% product-designer

Code Review | Product Designer

WordPress plugin Product Designer scored84%from 54 tests.

About plugin

  • Plugin page: product-designer
  • Plugin version: 1.0.32
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0+
  • WordPress version: 6.3.1
  • First release: Nov 27, 2016
  • Latest release: Apr 15, 2023
  • Number of updates: 103
  • Update frequency: every 29.6 days
  • Top authors: pickplugins (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /54,247 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /4.79 ▲1.3343.17 ▲3.36
Dashboard /wp-admin4.64 ▲1.3456.02 ▲5.05
Posts /wp-admin/edit.php4.70 ▲1.3460.89 ▲11.85
Add New Post /wp-admin/post-new.php7.17 ▲1.2887.53 ▼13.36
Media Library /wp-admin/upload.php4.49 ▲1.2647.04 ▲8.57
Clip Art /wp-admin/edit.php?post_type=clipart4.6250.32
Add Template /wp-admin/post-new.php?post_type=pd_template4.6854.19
Product Designer /wp-admin/edit.php?post_type=pd_template4.6244.40
Shape /wp-admin/edit.php?post_type=shape4.6246.01
Settings /wp-admin/edit.php?post_type=pd_template&page=product_designer4.5944.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,109 ▲37415.73 ▲1.459.22 ▲7.4637.97 ▼4.93
Dashboard /wp-admin2,400 ▲2126.48 ▲1.62133.40 ▲15.3343.20 ▼3.11
Posts /wp-admin/edit.php2,313 ▲2243.76 ▲1.7153.65 ▲15.3029.25 ▼3.76
Add New Post /wp-admin/post-new.php1,561 ▲2823.04 ▼0.20644.81 ▼36.7530.43 ▼20.73
Media Library /wp-admin/upload.php1,439 ▲484.20 ▲0.0284.99 ▼19.1146.13 ▲0.87
Clip Art /wp-admin/edit.php?post_type=clipart1,2783.6348.3229.70
Add Template /wp-admin/post-new.php?post_type=pd_template2,2856.39145.70118.25
Product Designer /wp-admin/edit.php?post_type=pd_template1,2673.5653.3327.19
Shape /wp-admin/edit.php?post_type=shape1,2783.6253.4728.86
Settings /wp-admin/edit.php?post_type=pd_template&page=product_designer2,7656.46120.3440.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

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
You can take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
SVG501212,217
PHP183,5132365,821
CSS112,2761435,329
JavaScript112,4757734,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 code0.44
Average class complexity98.33
▷ Minimum class complexity1.00
▷ Maximum class complexity641.00
Average method complexity12.38
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods77
▷ Static methods00.00%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions76
▷ Named functions76100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/front/images/placeholder.png19.00KB2.40KB▼ 87.35%
assets/admin/images/add-img-overlay.png27.99KB9.53KB▼ 65.95%
assets/admin/images/add-img-bg.png38.67KB10.30KB▼ 73.36%
assets/admin/images/add-img.png31.74KB11.95KB▼ 62.35%
assets/front/images/tile.png16.86KB0.09KB▼ 99.47%