79% reseller-store

Code Review | Reseller Store

WordPress plugin Reseller Store scored79%from 54 tests.

About plugin

  • Plugin page: reseller-store
  • Plugin version: 2.2.14
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2017
  • Latest release: Aug 3, 2023
  • Number of updates: 76
  • Update frequency: every 29.0 days
  • Top authors: bfocht (59.21%)cornelbc (25%)Godaddy (11.84%)cberesford (7.89%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /86,821 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.58ms] Passed 4 tests

A check of server-side resources used by Reseller Store
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.03 ▲4.55
Dashboard /wp-admin3.40 ▲0.0949.93 ▼0.07
Posts /wp-admin/edit.php3.45 ▲0.0954.24 ▲6.29
Add New Post /wp-admin/post-new.php6.11 ▲0.2287.35 ▼17.08
Media Library /wp-admin/upload.php3.32 ▲0.0941.69 ▲10.05
Setup /wp-admin/edit.php?post_type=reseller_product&page=reseller-store-setup2.4620.46
Tags /wp-admin/edit-tags.php?taxonomy=reseller_product_tag&post_type=reseller_product2.4620.11
Settings /wp-admin/edit.php?post_type=reseller_product&page=rstore_settings2.4619.82
All Products /wp-admin/edit.php?post_type=reseller_product2.4619.29
Categories /wp-admin/edit-tags.php?taxonomy=reseller_product_category&post_type=reseller_product2.4619.86

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Reseller Store
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.62 ▼1.144.29 ▲2.2841.76 ▼6.84
Dashboard /wp-admin2,245 ▲545.85 ▼0.06100.41 ▼0.1539.99 ▼2.94
Posts /wp-admin/edit.php2,125 ▲332.04 ▼0.0135.42 ▼6.0432.99 ▼3.41
Add New Post /wp-admin/post-new.php1,564 ▲4523.32 ▲0.17668.68 ▲17.6249.31 ▼6.11
Media Library /wp-admin/upload.php1,427 ▲394.21 ▲0.0598.26 ▼1.4041.75 ▼3.19
Setup /wp-admin/edit.php?post_type=reseller_product&page=reseller-store-setup9122.0329.0334.77
Tags /wp-admin/edit-tags.php?taxonomy=reseller_product_tag&post_type=reseller_product9152.0325.0731.61
Settings /wp-admin/edit.php?post_type=reseller_product&page=rstore_settings9092.0724.2530.80
All Products /wp-admin/edit.php?post_type=reseller_product9092.0424.4129.95
Categories /wp-admin/edit-tags.php?taxonomy=reseller_product_category&post_type=reseller_product9152.0724.6331.51

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/reseller-store/includes/butterbean/templates/control-plain-text.php
    • > /wp-content/plugins/reseller-store/includes/butterbean/templates/control-anchor.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 33
    • > PHP Notice
      Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 35
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 35
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 53
    • > PHP Notice
      Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 41
    • > PHP Notice
      Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 59
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reseller-store/includes/functions/product-functions.php:223
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 47
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 65

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: storefront, posts, program, reseller, ecommerce...

reseller-store/reseller-store.php Passed 13 tests

The main file in "Reseller Store" v. 2.2.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Sell hosting, domains, and more right from your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin6,279 lines of code in 86 files:
LanguageFilesBlank linesComment linesLines of code
PHP582,0513,0795,103
CSS124010680
JavaScript1411726494
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.46
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces6
Interfaces0
Traits3
Classes45
▷ Abstract classes00.00%
▷ Concrete classes45100.00%
▷ Final classes3271.11%
Methods195
▷ Static methods2311.79%
▷ Public methods15981.54%
▷ Protected methods21.03%
▷ Private methods3417.44%
Functions65
▷ Named functions2944.62%
▷ Anonymous functions3655.38%
Constants34
▷ Global constants00.00%
▷ Class constants34100.00%
▷ Public constants34100.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
No PNG images were found in this plugin