89% spreadr-for-woocomerce

Code Review | Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate

WordPress plugin Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate scored89%from 54 tests.

About plugin

  • Plugin page: spreadr-for-wooco...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Apr 26, 2021
  • Number of updates: 8
  • Update frequency: every 46.6 days
  • Top authors: spreadr (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /11,008 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.03ms] Passed 4 tests

Analyzing server-side resources used by Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.77 ▼0.09
Dashboard /wp-admin3.31 ▼0.0352.59 ▼20.32
Posts /wp-admin/edit.php3.36 ▲0.0154.39 ▼1.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.48 ▼16.89
Media Library /wp-admin/upload.php3.24 ▲0.0138.34 ▼1.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.37 ▲0.101.64 ▼0.0749.18 ▲10.55
Dashboard /wp-admin2,198 ▲215.64 ▼0.0393.61 ▲0.6242.18 ▼4.61
Posts /wp-admin/edit.php2,103 ▲31.97 ▲0.0242.71 ▲3.0838.03 ▲2.61
Add New Post /wp-admin/post-new.php1,535 ▲13123.01 ▲5.22678.22 ▲66.2160.13 ▲9.57
Media Library /wp-admin/upload.php1,400 ▼34.10 ▼0.0997.17 ▼6.3546.59 ▼7.05

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

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

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
The SRP test was a success

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 errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 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
6 plugin tags: amazon associate, amazon importing, amazon woocommerce, amazon dropshipping, amazon affiliate...

spreadr-for-woocomerce/spreadr.php 69% from 13 tests

"Spreadr Woocommerce Plugin - Amazon Importer for Dropshipping and Affiliate" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spreadr-for-woocomerce.php" instead of "spreadr.php")
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 75 characters long)
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
  • Requires at least: The required version number did not match the one declared in readme.txt ("2.9.1" instead of "4.4")

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
Good job! No executable or dangerous file extensions detected1,047 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64931231,047

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods11
▷ Static methods545.45%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin