78% verify-customers-licenses-gumroad

Code Review | Verify Customers Licenses for Gumroad

WordPress plugin Verify Customers Licenses for Gumroad scored78%from 54 tests.

About plugin

  • Plugin page: verify-customers-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2020
  • Latest release: Nov 5, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: unistudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.16ms] Passed 4 tests

Server-side resources used by Verify Customers Licenses for Gumroad
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.45 ▼3.44
Dashboard /wp-admin3.34 ▼0.0143.88 ▼14.36
Posts /wp-admin/edit.php3.39 ▲0.0343.13 ▼5.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.34 ▼9.33
Media Library /wp-admin/upload.php3.26 ▲0.0335.38 ▲2.71

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Verify Customers Licenses for Gumroad
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲18113.71 ▼0.917.68 ▲6.0038.27 ▼2.74
Dashboard /wp-admin2,222 ▲344.87 ▼0.9995.21 ▼13.1637.84 ▼5.02
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.1336.32 ▼0.9935.90 ▲1.81
Add New Post /wp-admin/post-new.php1,540 ▲2018.20 ▼4.94609.31 ▼28.2755.65 ▲6.21
Media Library /wp-admin/upload.php1,401 ▲134.21 ▲0.01100.67 ▲3.9044.63 ▲2.78

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/verify-customers-licenses-gumroad/uninstall.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/verify-customers-licenses-gumroad/inc/shortcodes.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verify-customers-licenses-gumroad/inc/callback.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verify-customers-licenses-gumroad/inc/enqueue.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/verify-customers-licenses-gumroad/admin/menu.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/verify-customers-licenses-gumroad/frontend/view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/verify-customers-licenses-gumroad/admin/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/verify-customers-licenses-gumroad/inc/hooks.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: gumroad api, license verification, wordpress, digial products, license verify...

verify-customers-licenses-gumroad/verify-customers-licenses-gumroad.php 85% from 13 tests

The main file in "Verify Customers Licenses for Gumroad" v. 1.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: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.4")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin420 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP126569187
CSS257139
JavaScript2242594

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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 are no PNG files in this plugin