84% easy-registration-form

Code Review | Easy Registration Form

WordPress plugin Easy Registration Form scored84%from 54 tests.

About plugin

  • Plugin page: easy-registration...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Apr 22, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: samerralshaer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /724 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.01MB] [CPU: ▲0.69ms] Passed 4 tests

This is a short check of server-side resources used by Easy Registration Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.62 ▼2.55
Dashboard /wp-admin3.32 ▲0.0145.89 ▲0.05
Posts /wp-admin/edit.php3.37 ▲0.0147.73 ▲2.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.00 ▲3.84
Media Library /wp-admin/upload.php3.24 ▲0.0133.69 ▲3.15
Easy Registration Form /wp-admin/options-general.php?page=Easy-Registration-Form3.2031.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Registration Form
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.62 ▼0.801.73 ▼0.5738.07 ▼12.90
Dashboard /wp-admin2,226 ▲384.84 ▼1.05112.45 ▼1.0140.21 ▼3.02
Posts /wp-admin/edit.php2,109 ▲202.03 ▼0.0239.31 ▲5.1034.36 ▲2.38
Add New Post /wp-admin/post-new.php1,530 ▼317.56 ▼5.48648.69 ▲10.5451.77 ▼9.01
Media Library /wp-admin/upload.php1,411 ▲264.25 ▲0.0796.82 ▼4.1441.29 ▼0.75
Easy Registration Form /wp-admin/options-general.php?page=Easy-Registration-Form8322.0224.0943.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/easy-registration-form/easy-templates/easy-register-form_ar.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/easy-registration-form/easy-templates/easy-register-form.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

easy-registration-form/easy-register.php 92% from 13 tests

This is the main PHP file of "Easy Registration Form" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-registration-form.php" instead of "easy-register.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin405 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5328270
CSS1113135

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin