78% shopp-minimum-order-amount

Code Review | Shopp Minimum Order

WordPress plugin Shopp Minimum Order scored78%from 54 tests.

About plugin

  • Plugin page: shopp-minimum-ord...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2012
  • Latest release: Jul 13, 2015
  • Number of updates: 31
  • Update frequency: every 35.8 days
  • Top authors: crunnells (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,427 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.24ms] Passed 4 tests

This is a short check of server-side resources used by Shopp Minimum Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.93 ▼3.01
Dashboard /wp-admin3.32 ▼0.0247.17 ▼13.09
Posts /wp-admin/edit.php3.37 ▲0.0241.14 ▼3.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.32 ▼8.93
Media Library /wp-admin/upload.php3.25 ▲0.0229.11 ▼7.13
Minimum Order /wp-admin/admin.php?page=shopp-minimum-order3.1929.38

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shopp Minimum Order
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.35 ▼0.221.93 ▲0.2443.91 ▲4.61
Dashboard /wp-admin2,195 ▲155.62 ▼0.0495.36 ▲9.4240.38 ▼1.15
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0435.85 ▲2.4531.50 ▼3.12
Add New Post /wp-admin/post-new.php1,531 ▲523.12 ▲0.21655.05 ▼11.8846.82 ▼12.41
Media Library /wp-admin/upload.php1,394 ▼04.19 ▲0.0293.39 ▼5.1341.32 ▼3.94
Minimum Order /wp-admin/admin.php?page=shopp-minimum-order8482.0021.9343.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=shopp-minimum-order
    • > Notice in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php+69
    Undefined index: action
    • > GET request to /wp-admin/admin.php?page=shopp-minimum-order
    • > Notice in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php+130
    Undefined variable: message

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shopp-minimum-order-amount/shopp-minimum-order.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: shopp, order, minimum order, e-commerce, minimum

shopp-minimum-order-amount/shopp-minimum-order.php 92% from 13 tests

"Shopp Minimum Order" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("shopp-minimum-order-amount.php" instead of "shopp-minimum-order.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected166 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17347166

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
No PNG files were detected