84% sellbrite

Code Review | Sellbrite

WordPress plugin Sellbrite scored84%from 54 tests.

About plugin

  • Plugin page: sellbrite
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Aug 2, 2023
  • Number of updates: 7
  • Update frequency: every 139.1 days
  • Top authors: Godaddy (71.43%)sellbritedev (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /5,189 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.69ms] Passed 4 tests

A check of server-side resources used by Sellbrite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.80 ▼2.19
Dashboard /wp-admin3.36 ▲0.0545.05 ▼5.25
Posts /wp-admin/edit.php3.48 ▲0.1243.95 ▼2.80
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.83 ▼20.52
Media Library /wp-admin/upload.php3.28 ▲0.0535.31 ▲0.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sellbrite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.21 ▼1.151.85 ▲0.1043.23 ▼0.45
Dashboard /wp-admin2,226 ▲385.90 ▲0.0999.96 ▼8.1742.73 ▲1.62
Posts /wp-admin/edit.php2,109 ▲202.02 ▲0.0235.96 ▼6.2131.57 ▼4.31
Add New Post /wp-admin/post-new.php1,532 ▼123.50 ▲0.29681.99 ▲85.8556.23 ▲8.01
Media Library /wp-admin/upload.php1,411 ▲264.20 ▲0.01100.37 ▲3.3843.59 ▲1.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/EnableWooCommerceAPIStep.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/SendWooCommerceKeysStep.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/CreateSellbriteUserStep.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sellbrite/sellbrite.php:137
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/EnsureWooCommerceActiveStep.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/PermalinkSettingsStep.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/GenerateWooCommerceKeysStep.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sellbrite_AutomationStep' not found in wp-content/plugins/sellbrite/steps/EnsureWooCommerceVersionStep.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: sellbrite, walmart, ebay, woocommerce, amazon

sellbrite/sellbrite.php Passed 13 tests

The principal PHP file in "Sellbrite" v. 1.0.2 is loaded by WordPress automatically on each request
65 characters long description:
Helps you easily integrate your WooCommerce store with Sellbrite.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected406 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP107219333
JavaScript114361
CSS13012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity3.27
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin