83% eacsoftwareregistry-subscription-webhooks

Code Review | {eac}SoftwareRegistry Subscriptions for WooCommerce

WordPress plugin {eac}SoftwareRegistry Subscriptions for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: eacsoftwareregist...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Sep 2, 2023
  • Number of updates: 22
  • Update frequency: every 19.2 days
  • Top authors: kevinburkholder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by {eac}SoftwareRegistry Subscriptions for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.17 ▼5.49
Dashboard /wp-admin3.32 ▲0.0151.05 ▲2.99
Posts /wp-admin/edit.php3.37 ▲0.0147.78 ▲1.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.75 ▼8.28
Media Library /wp-admin/upload.php3.24 ▲0.0135.19 ▼0.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for {eac}SoftwareRegistry Subscriptions for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.58 ▼0.841.74 ▼0.2540.91 ▼3.67
Dashboard /wp-admin2,206 ▲155.92 ▲1.03101.56 ▼13.1940.47 ▼8.55
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0136.22 ▲1.1432.78 ▼1.97
Add New Post /wp-admin/post-new.php1,534 ▲123.33 ▲0.16683.48 ▲10.0054.60 ▼5.70
Media Library /wp-admin/upload.php1,385 ▼04.27 ▲0.0995.16 ▼10.3042.55 ▼5.05

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EarthAsylumConsulting\\is_admin() in wp-content/plugins/eacsoftwareregistry-subscription-webhooks/eacSoftwareRegistry_Subscription_Webhooks.php:48

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 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

eacsoftwareregistry-subscription-webhooks/eacSoftwareRegistry_Subscription_Webhooks.php 77% from 13 tests

The main PHP file in "{eac}SoftwareRegistry Subscriptions for WooCommerce" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eacsoftwareregistry-subscription-webhooks.php" instead of "eacSoftwareRegistry_Subscription_Webhooks.php")

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
Success! There were no dangerous files found in this plugin828 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11110564
PHP147123264

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods763.64%
▷ Protected methods00.00%
▷ Private methods436.36%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
There were not PNG files found in your plugin