84% registration-for-woocommerce

Code Review | Extended Registration Form For WooCommerce

WordPress plugin Extended Registration Form For WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: registration-for-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Sep 29, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: salive1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Extended Registration Form For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.79 ▲4.26
Dashboard /wp-admin3.31 ▲0.0145.60 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0047.85 ▲3.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.28 ▼12.03
Media Library /wp-admin/upload.php3.23 ▲0.0031.06 ▼3.54

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Extended Registration Form For WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.29 ▼0.071.81 ▼0.0942.80 ▲1.76
Dashboard /wp-admin2,209 ▲295.58 ▲0.0181.03 ▼5.2038.82 ▼6.61
Posts /wp-admin/edit.php2,111 ▲112.05 ▲0.0741.27 ▲6.9437.10 ▲4.02
Add New Post /wp-admin/post-new.php1,532 ▲623.14 ▼0.15662.79 ▲13.8653.38 ▼3.33
Media Library /wp-admin/upload.php1,414 ▲174.27 ▲0.0894.30 ▼3.5646.27 ▲4.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/registration-for-woocommerce/includes/functions-registration-for-woocommerce.php:3

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: shipping, registration-form, billing, woocommerce, fields

registration-for-woocommerce/registration-for-woocommerce.php Passed 13 tests

"Extended Registration Form For WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
Extended registration form for woocommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected378 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP498142367
JavaScript1009
CSS2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1071.43%
▷ Protected methods00.00%
▷ Private methods428.57%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin