89% zakeke-interactive-product-designer

Code Review | Zakeke Interactive Product Designer for WooCommerce

WordPress plugin Zakeke Interactive Product Designer for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: zakeke-interactiv...
  • Plugin version: 3.7.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 8, 2017
  • Latest release: Nov 15, 2023
  • Number of updates: 232
  • Update frequency: every 10.1 days
  • Top authors: futurenext (100%)

Code review

54 tests

User reviews

127 reviews

Install metrics

3,000+ active /169,501 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.68ms] Passed 4 tests

Server-side resources used by Zakeke Interactive Product Designer for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.35 ▼2.35
Dashboard /wp-admin3.37 ▲0.0747.64 ▼1.41
Posts /wp-admin/edit.php3.49 ▲0.1347.20 ▲2.21
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.38 ▼0.21
Media Library /wp-admin/upload.php3.30 ▲0.0733.36 ▲1.25

Server storage [IO: ▲1.87MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 347 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Zakeke Interactive Product Designer for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.34 ▲0.091.70 ▼0.1641.16 ▼2.97
Dashboard /wp-admin2,198 ▲215.60 ▲0.0388.76 ▼1.9140.45 ▼0.23
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0135.06 ▼2.2135.07 ▼1.46
Add New Post /wp-admin/post-new.php1,526 ▼323.28 ▲0.18589.03 ▼49.1655.78 ▲0.86
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.0297.74 ▼4.7343.05 ▼1.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed: You can look at the official readme.txt

zakeke-interactive-product-designer/zakeke.php 77% from 13 tests

The main file in "Zakeke Interactive Product Designer for WooCommerce" v. 3.7.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("zakeke-interactive-product-designer.php" instead of "zakeke.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin12,789 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PO File782,6523,2776,091
PHP318861,2603,436
JavaScript67251,4142,417
Markdown15520556
CSS6160289

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.40
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes14.00%
▷ Concrete classes2496.00%
▷ Final classes14.17%
Methods191
▷ Static methods10856.54%
▷ Public methods15782.20%
▷ Protected methods00.00%
▷ Private methods3417.80%
Functions23
▷ Named functions1773.91%
▷ Anonymous functions626.09%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/zakeke_logo.png3.45KB2.42KB▼ 29.83%
assets/images/zakeke_icon.png1.10KB0.68KB▼ 38.32%