78% sellbery

Code Review | Sellbery

WordPress plugin Sellbery scored78%from 54 tests.

About plugin

  • Plugin page: sellbery
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Feb 24, 2021
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: sellbery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /443 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.37ms] Passed 4 tests

An overview of server-side resources used by Sellbery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0646.30 ▲6.61
Dashboard /wp-admin3.36 ▲0.0552.53 ▼2.04
Posts /wp-admin/edit.php3.39 ▲0.0352.45 ▲2.88
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.60 ▼10.36
Media Library /wp-admin/upload.php3.28 ▲0.0543.09 ▲4.04

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 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 Sellbery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.42 ▲0.071.73 ▲0.1846.16 ▲4.77
Dashboard /wp-admin2,202 ▲225.58 ▼0.1183.30 ▼2.4239.57 ▼7.24
Posts /wp-admin/edit.php2,107 ▲102.00 ▲0.0235.87 ▼0.1936.02 ▼2.76
Add New Post /wp-admin/post-new.php1,532 ▲623.25 ▲0.16653.08 ▼25.1155.48 ▼18.73
Media Library /wp-admin/upload.php1,404 ▲44.15 ▲0.02107.51 ▼6.5444.81 ▼3.25

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sellbery/admin/wc-sellbery-settings/sellbery-fields.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sellbery/admin/wc-sellbery-settings/sellbery-product.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/sellbery/admin/wc-sellbery-settings/wc-sellbery-integration.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 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: woocommerce, e-commerce, amazon, store, ebay

sellbery/SellberyWooCommerce.php 85% from 13 tests

The main file in "Sellbery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sellbery.php" instead of "SellberyWooCommerce.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
Success! There were no dangerous files found in this plugin730 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10147403591
JavaScript1728111
Markdown117028
CSS1040

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods38
▷ Static methods12.63%
▷ Public methods3181.58%
▷ Protected methods12.63%
▷ Private methods615.79%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants1
▷ Global constants1100.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