89% sharespine-woocommerce-connector

Code Review | Sharespine Woocommerce Connector

WordPress plugin Sharespine Woocommerce Connector scored89%from 54 tests.

About plugin

  • Plugin page: sharespine-woocom...
  • Plugin version: 4.7.55
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Oct 18, 2023
  • Number of updates: 24
  • Update frequency: every 79.6 days
  • Top authors: sharespine (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /7,267 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼12.35ms] Passed 4 tests

This is a short check of server-side resources used by Sharespine Woocommerce Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.08 ▲0.27
Dashboard /wp-admin3.35 ▲0.0146.31 ▼15.44
Posts /wp-admin/edit.php3.47 ▲0.1142.64 ▼9.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.44 ▼23.28
Media Library /wp-admin/upload.php3.28 ▲0.0534.69 ▼0.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Sharespine Woocommerce Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲1914.17 ▼0.231.74 ▲0.0443.08 ▲2.39
Dashboard /wp-admin2,208 ▲315.52 ▼0.0682.61 ▼1.5537.99 ▼5.91
Posts /wp-admin/edit.php2,113 ▲102.01 ▲0.0332.11 ▼3.8231.28 ▼2.82
Add New Post /wp-admin/post-new.php1,544 ▲1323.17 ▼0.01659.01 ▲4.8853.95 ▼14.12
Media Library /wp-admin/upload.php1,416 ▲134.15 ▼0.02102.13 ▲2.9545.42 ▼0.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can take inspiration from this readme.txt

sharespine-woocommerce-connector/sharespine-woocommerce-connector.php 85% from 13 tests

Analyzing the main PHP file in "Sharespine Woocommerce Connector" version 4.7.55
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected353 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP88027353

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions950.00%
▷ Anonymous functions950.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin