89% dynamaker-cad-configurator-integration

Code Review | DynaMaker CAD Configurator Integration

WordPress plugin DynaMaker CAD Configurator Integration scored89%from 54 tests.

About plugin

  • Plugin page: dynamaker-cad-con...
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2020
  • Latest release: Sep 8, 2023
  • Number of updates: 23
  • Update frequency: every 55.4 days
  • Top authors: kriffe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,204 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.15MB] [CPU: ▼2.46ms] Passed 4 tests

A check of server-side resources used by DynaMaker CAD Configurator Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2039.62 ▲0.03
Dashboard /wp-admin3.49 ▲0.1942.60 ▼2.81
Posts /wp-admin/edit.php3.54 ▲0.1846.62 ▼2.62
Add New Post /wp-admin/post-new.php6.01 ▲0.1393.37 ▼4.42
Media Library /wp-admin/upload.php3.35 ▲0.1240.72 ▲6.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for DynaMaker CAD Configurator Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.48 ▼0.191.78 ▲0.0943.37 ▼3.43
Dashboard /wp-admin2,208 ▲174.82 ▼0.30109.25 ▲9.2242.01 ▼0.83
Posts /wp-admin/edit.php2,091 ▲21.97 ▼0.0440.10 ▲3.6137.02 ▲3.02
Add New Post /wp-admin/post-new.php6,354 ▲4,82427.90 ▲9.76901.23 ▲245.0841.21 ▼12.02
Media Library /wp-admin/upload.php1,390 ▲24.20 ▲0.00100.51 ▲1.1645.46 ▲2.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% 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: The plugin contributors field is missing
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

dynamaker-cad-configurator-integration/dynamaker_cad_configurator_integration.php 85% from 13 tests

The main PHP file in "DynaMaker CAD Configurator Integration" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamaker-cad-configurator-integration.php" instead of "dynamaker_cad_configurator_integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin869 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP18154262535
JavaScript2100293
JSON10034
CSS1107

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity3.41
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1551.72%
▷ Public methods2896.55%
▷ Protected methods13.45%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin