83% woo-oscommerce-sync

Code Review | Woocommerce osCommerce Sync

WordPress plugin Woocommerce osCommerce Sync scored83%from 54 tests.

About plugin

  • Plugin page: woo-oscommerce-sync
  • Plugin version: 2.0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1+
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: May 16, 2020
  • Number of updates: 15
  • Update frequency: every 52.4 days
  • Top authors: alexwing (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,270 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼5.74ms] Passed 4 tests

Analyzing server-side resources used by Woocommerce osCommerce Sync
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1940.74 ▼1.74
Dashboard /wp-admin3.49 ▲0.1847.79 ▼3.70
Posts /wp-admin/edit.php3.54 ▲0.1852.28 ▲4.03
Add New Post /wp-admin/post-new.php6.09 ▲0.2085.86 ▼18.45
Media Library /wp-admin/upload.php3.41 ▲0.1838.71 ▲0.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woocommerce osCommerce Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.86 ▲0.482.06 ▲0.2329.64 ▼14.46
Dashboard /wp-admin2,210 ▲225.00 ▲0.12117.23 ▲1.9145.65 ▲2.19
Posts /wp-admin/edit.php2,093 ▲42.26 ▲0.2438.91 ▲2.6942.38 ▲8.61
Add New Post /wp-admin/post-new.php1,672 ▲13022.74 ▲4.49657.40 ▲9.7956.85 ▲0.57
Media Library /wp-admin/upload.php1,389 ▲14.28 ▲0.1098.57 ▼2.4845.29 ▼0.95

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-oscommerce-sync/woocommerce-osc-sync.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
You can take inspiration from this readme.txt

woo-oscommerce-sync/woocommerce-osc-sync.php 85% from 13 tests

The main PHP script in "Woocommerce osCommerce Sync" version 2.0.20 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • 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: Please rename the main PHP file in this plugin to the plugin slug ("woo-oscommerce-sync.php" instead of "woocommerce-osc-sync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin17,955 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,1914110,145
JavaScript41,7821,7056,749
PHP18157835
PO File27812198
Markdown118028

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin