84% disable-downloadable-repeat-purchase

Code Review | Disable Downloadable Repeat Purchase - WooCommerce + WPML

WordPress plugin Disable Downloadable Repeat Purchase - WooCommerce + WPML scored84%from 54 tests.

About plugin

  • Plugin page: disable-downloada...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Nov 15, 2018
  • Number of updates: 48
  • Update frequency: every 12.1 days
  • Top authors: pwallner (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,335 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.44ms] Passed 4 tests

An overview of server-side resources used by Disable Downloadable Repeat Purchase - WooCommerce + WPML
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.63 ▲2.34
Dashboard /wp-admin3.31 ▲0.0045.40 ▼8.82
Posts /wp-admin/edit.php3.36 ▲0.0051.52 ▲1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.28 ▼0.93
Media Library /wp-admin/upload.php3.23 ▲0.0039.65 ▲3.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Disable Downloadable Repeat Purchase - WooCommerce + WPML: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.071.89 ▼0.1543.11 ▼1.91
Dashboard /wp-admin2,198 ▲215.65 ▼0.0290.18 ▼12.1936.09 ▼7.10
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0336.30 ▲0.6335.62 ▼1.80
Add New Post /wp-admin/post-new.php1,526 ▼1123.42 ▲5.20691.38 ▲47.6367.80 ▲3.77
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0495.80 ▼12.2144.03 ▼3.85

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/disable-downloadable-repeat-purchase/disable-downloadable-repeat-purchase.php:588

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: woocommerce, subscriptions, disable, purchase, repeat...

disable-downloadable-repeat-purchase/disable-downloadable-repeat-purchase.php 85% from 13 tests

The main file in "Disable Downloadable Repeat Purchase - WooCommerce + WPML" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.4.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 318 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin536 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14269534
CSS1001
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.78
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%
Functions20
▷ Named functions1785.00%
▷ Anonymous functions315.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin