83% eacsoftwareregistry-webhook-endpoints

Code Review | {eac}SoftwareRegistry WooCommerce Webhook Endpoints

WordPress plugin {eac}SoftwareRegistry WooCommerce Webhook Endpoints scored83%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /719 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
Installer ran successfully

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

An overview of server-side resources used by {eac}SoftwareRegistry WooCommerce Webhook Endpoints
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.95 ▲1.72
Dashboard /wp-admin3.32 ▲0.0143.77 ▼4.89
Posts /wp-admin/edit.php3.37 ▲0.0145.88 ▼3.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.58 ▼3.87
Media Library /wp-admin/upload.php3.24 ▲0.0138.15 ▲4.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for {eac}SoftwareRegistry WooCommerce Webhook Endpoints
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.451.74 ▲0.1140.38 ▲2.11
Dashboard /wp-admin2,203 ▲114.83 ▼0.13107.12 ▼2.2838.56 ▲0.14
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0041.46 ▲5.4440.60 ▲3.76
Add New Post /wp-admin/post-new.php1,514 ▼017.44 ▼0.06683.25 ▲30.9653.91 ▲1.16
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.03100.43 ▼0.7542.38 ▼0.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'EarthAsylumConsulting\\abstract_extension' not found in wp-content/plugins/eacsoftwareregistry-webhook-endpoints/Extensions/class.woocommerce_webhooks.extension.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function EarthAsylumConsulting\\add_filter() in wp-content/plugins/eacsoftwareregistry-webhook-endpoints/eacSoftwareRegistry_Webhook_Endpoints.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% 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
7 plugin tags: subscriptions, software registration, software registry, eacsoftwareregistry, webhooks...

eacsoftwareregistry-webhook-endpoints/eacSoftwareRegistry_Webhook_Endpoints.php 69% from 13 tests

The principal PHP file in "{eac}SoftwareRegistry WooCommerce Webhook Endpoints" v. 1.0.10 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("eacsoftwareregistry-webhook-endpoints.php" instead of "eacSoftwareRegistry_Webhook_Endpoints.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 plugin1,260 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2125281696
Markdown11110564

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity58.50
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods937.50%
▷ Protected methods00.00%
▷ Private methods1562.50%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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 are no PNG files in this plugin