90% recently-purchased-product-display-for-woocommerce

Code Review | Recently Purchased Product Display For WooCommerce

WordPress plugin Recently Purchased Product Display For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: recently-purchase...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 1, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: codextent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Recently Purchased Product Display For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.04 ▼0.81
Dashboard /wp-admin3.32 ▲0.0143.27 ▼3.11
Posts /wp-admin/edit.php3.37 ▲0.0145.78 ▲2.30
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.63 ▼5.02
Media Library /wp-admin/upload.php3.24 ▲0.0131.20 ▼7.47

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Recently Purchased Product Display For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.451.62 ▲0.0041.02 ▼2.19
Dashboard /wp-admin2,192 ▲125.55 ▼0.0988.80 ▲4.5936.58 ▼3.87
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0439.28 ▲1.5035.76 ▲1.50
Add New Post /wp-admin/post-new.php1,526 ▼023.02 ▲0.01592.61 ▼102.9155.37 ▲4.10
Media Library /wp-admin/upload.php1,400 ▼04.27 ▼0.0494.68 ▼16.8740.18 ▼5.44

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_codextent-woo-rep
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: widgets, recently purchased product widget, recently purchased product display, recently purchased widget, woocommerce recently purchased product...

recently-purchased-product-display-for-woocommerce/recently-purchased-product-display-for-woocommerce.php Passed 13 tests

The main file in "Recently Purchased Product Display For WooCommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
75 characters long description:
Woocommerce Recently Purchased Product Display using Widgets and Shortcode.

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 detected350 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP310256269
CSS23180
HTML1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods444.44%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin