84% digimastertools-email-sync

Code Review | DigiMasterTools Email sync for Klick Tipp and WooCommerce

WordPress plugin DigiMasterTools Email sync for Klick Tipp and WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: digimastertools-e...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2022
  • Latest release: Jan 28, 2023
  • Number of updates: 15
  • Update frequency: every 12.0 days
  • Top authors: konstantinpeterson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.46ms] Passed 4 tests

An overview of server-side resources used by DigiMasterTools Email sync for Klick Tipp and WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.32 ▲2.88
Dashboard /wp-admin3.32 ▲0.0243.92 ▼4.07
Posts /wp-admin/edit.php3.37 ▲0.0248.79 ▼0.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.87 ▼20.22
Media Library /wp-admin/upload.php3.24 ▲0.0238.31 ▼0.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

DigiMasterTools Email sync for Klick Tipp and WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.40 ▲0.021.70 ▲0.0343.88 ▼1.43
Dashboard /wp-admin2,221 ▲334.87 ▼1.03108.52 ▼1.9040.75 ▼0.78
Posts /wp-admin/edit.php2,104 ▲152.01 ▼0.0140.28 ▲0.9234.48 ▼8.82
Add New Post /wp-admin/post-new.php1,543 ▲523.34 ▲2.23587.89 ▼125.7844.84 ▼28.65
Media Library /wp-admin/upload.php1,397 ▲94.21 ▼0.05122.64 ▼0.0551.56 ▼2.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/digimastertools-email-sync/index.php:418

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: shop, ecommerce, woocommerce, autoresponder, email...

digimastertools-email-sync/index.php 85% from 13 tests

The main PHP script in "DigiMasterTools Email sync for Klick Tipp and WooCommerce" version 1.0.6 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("digimastertools-email-sync.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,865 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23374731,826
JavaScript113522
CSS10117

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity58.00
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods3995.12%
▷ Protected methods24.88%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin