89% mainichi-shopify-products-connect

Code Review | Connect Products with Shopify

WordPress plugin Connect Products with Shopify scored89%from 54 tests.

About plugin

  • Plugin page: mainichi-shopify-...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Nov 19, 2023
  • Number of updates: 19
  • Update frequency: every 50.3 days
  • Top authors: mainichiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,261 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
Install script ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▲2.07ms] Passed 4 tests

Analyzing server-side resources used by Connect Products with Shopify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3641.11 ▼0.94
Dashboard /wp-admin3.66 ▲0.3545.33 ▼7.01
Posts /wp-admin/edit.php3.77 ▲0.4252.30 ▲8.22
Add New Post /wp-admin/post-new.php6.40 ▲0.5189.58 ▲8.00
Media Library /wp-admin/upload.php3.58 ▲0.3540.48 ▲8.52
Product Type /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product3.5835.85
Tags /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product3.5834.84
Product /wp-admin/edit.php?post_type=product3.6337.22
Add New /wp-admin/post-new.php?post_type=product6.4083.61

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Connect Products with Shopify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲6114.67 ▼0.041.96 ▼0.1043.45 ▲0.29
Dashboard /wp-admin2,247 ▲705.62 ▼0.0691.93 ▼5.4440.97 ▼4.70
Posts /wp-admin/edit.php2,152 ▲522.02 ▲0.0340.57 ▲2.0635.37 ▼2.23
Add New Post /wp-admin/post-new.php1,567 ▲3023.26 ▼2.00669.00 ▲13.0552.79 ▼16.93
Media Library /wp-admin/upload.php1,446 ▲464.20 ▲0.02101.00 ▲3.6843.07 ▲0.25
Product Type /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product1,3232.1227.8931.23
Tags /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product1,3202.1228.6331.66
Product /wp-admin/edit.php?post_type=product1,1701.9030.5232.20
Add New /wp-admin/post-new.php?post_type=product1,60317.061,014.7836.43

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt might help

mainichi-shopify-products-connect/mainichi-shopify-products-connect.php 92% from 13 tests

Analyzing the main PHP file in "Connect Products with Shopify" version 1.1.6
It is important to fix the following:
  • Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")

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
No dangerous file extensions were detected4,925 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP143923614,126
PO File1208240487
CSS1574261
SVG30351

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods11
▷ Static methods19.09%
▷ Public methods327.27%
▷ Protected methods00.00%
▷ Private methods872.73%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.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
No PNG files were detected