89% dynamaker-cad-configurator-for-woocommerce

Code Review | DynaMaker CAD Configurator for WooCommerce

WordPress plugin DynaMaker CAD Configurator for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: dynamaker-cad-con...
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2022
  • Latest release: Sep 8, 2023
  • Number of updates: 12
  • Update frequency: every 36.3 days
  • Top authors: kriffe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.98ms] Passed 4 tests

A check of server-side resources used by DynaMaker CAD Configurator for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.35 ▼4.01
Dashboard /wp-admin3.32 ▲0.0147.52 ▼5.81
Posts /wp-admin/edit.php3.37 ▲0.0146.15 ▼4.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.59 ▼9.72
Media Library /wp-admin/upload.php3.24 ▲0.0139.58 ▲1.84

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for DynaMaker CAD Configurator for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.62 ▲0.231.96 ▼0.0239.03 ▼5.47
Dashboard /wp-admin2,195 ▲185.52 ▼0.1689.88 ▼6.3739.33 ▲0.70
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0739.27 ▲3.7136.62 ▼1.39
Add New Post /wp-admin/post-new.php1,554 ▲1418.34 ▲0.25677.20 ▲14.3957.12 ▲3.03
Media Library /wp-admin/upload.php1,394 ▼64.28 ▲0.05102.54 ▼5.8947.11 ▼0.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

dynamaker-cad-configurator-for-woocommerce/dynamaker-cad-configurator-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "DynaMaker CAD Configurator for WooCommerce" version 1.1.5
74 characters long description:
Replace product images in WooCommerce with embedded DynaMaker integration.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin154 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13212108
PHP1101041
CSS1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin