78% easy-login-woocommerce

Code Review | Login/Signup Popup ( Inline Form + Woocommerce )

WordPress plugin Login/Signup Popup ( Inline Form + Woocommerce ) scored78%from 54 tests.

About plugin

  • Plugin page: easy-login-woocom...
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2018
  • Latest release: Aug 24, 2023
  • Number of updates: 125
  • Update frequency: every 15.7 days
  • Top authors: xootix (100%)

Code review

54 tests

User reviews

157 reviews

Install metrics

40,000+ active /313,829 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.77MB] [CPU: ▲0.32ms] Passed 4 tests

An overview of server-side resources used by Login/Signup Popup ( Inline Form + Woocommerce )
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.30 ▲0.8442.01 ▲2.22
Dashboard /wp-admin4.08 ▲0.7447.82 ▼13.31
Posts /wp-admin/edit.php4.13 ▲0.7852.76 ▲8.09
Add New Post /wp-admin/post-new.php6.66 ▲0.77113.10 ▲12.34
Media Library /wp-admin/upload.php4.00 ▲0.7742.05 ▲4.26
Fields /wp-admin/admin.php?page=xoo-el-fields4.5543.62
Settings /wp-admin/admin.php?page=easy-login-woocommerce-settings4.0742.79

Server storage [IO: ▲3.75MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 15 new options
New WordPress options
xoo-el-gl-options
theysaidso_admin_options
xoo_aff_easy_login_woocommerce_fields
xoo-aff-easy-login-woocommerce-general-options
xoo-el-sec-options
can_compress_scripts
widget_recent-comments
xoo-el-version
xoo_easy-login-woocommerce_theme_templates_data
db_upgraded
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login/Signup Popup ( Inline Form + Woocommerce )
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲24314.79 ▲0.3918.39 ▲16.5035.36 ▼9.51
Dashboard /wp-admin2,233 ▲485.85 ▼0.03105.84 ▲7.9247.24 ▲3.42
Posts /wp-admin/edit.php2,122 ▲332.00 ▼0.0238.40 ▲3.4035.38 ▼1.09
Add New Post /wp-admin/post-new.php1,567 ▲3118.60 ▼4.62603.91 ▼11.5155.76 ▲7.67
Media Library /wp-admin/upload.php1,418 ▲304.19 ▼0.0493.72 ▼12.8941.77 ▼5.50
Fields /wp-admin/admin.php?page=xoo-el-fields1,6574.1476.0948.32
Settings /wp-admin/admin.php?page=easy-login-woocommerce-settings2,7815.21117.2734.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • xoo_easy-login-woocommerce_theme_templates_data
    • xoo-el-gl-options
    • xoo-el-av-options
    • xoo_aff_easy_login_woocommerce_fields
    • xoo-el-sy-options
    • widget_theysaidso_widget
    • widget_recent-comments
    • xoo-el-version
    • xoo-aff-easy-login-woocommerce-general-options
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
Please fix the following
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/scripts/notice.php
    • > /wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/xoo-aff-template-scripts.php
    • > /wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/scripts/field-settings-container.php
    • > /wp-content/plugins/easy-login-woocommerce/includes/xoo-framework/admin/templates/global/setting-upload.php
    • > /wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/scripts/field-settings.php
    • > /wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/scripts/field-display.php
  • 77× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/includes/templates/xoo-aff-inline-style.php on line 12
    • > PHP Notice
      Undefined variable: sy_options in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/includes/templates/xoo-aff-inline-style.php on line 9
    • > PHP Notice
      Undefined variable: sy_options in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/includes/templates/xoo-aff-inline-style.php on line 11
    • > PHP Warning
      Use of undefined constant XOO_AFF_DIR - assumed 'XOO_AFF_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/xoo-aff-template-scripts.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/easy-login-woocommerce/admin/views/settings/advanced.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Xoo_Helper' not found in wp-content/plugins/easy-login-woocommerce/includes/class-xoo-el-helper.php:3
    • > PHP Warning
      include(): Failed opening 'XOO_AFF_DIR/countries/countries.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/scripts/field-settings.php on line 3
    • > PHP Warning
      include(): Failed opening 'XOO_AFF_DIR/admin/templates/scripts//notice.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/admin/templates/xoo-aff-template-scripts.php on line 26
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/includes/templates/xoo-aff-inline-style.php on line 8
    • > PHP Notice
      Undefined variable: sy_options in wp-content/plugins/easy-login-woocommerce/xoo-form-fields-fw/includes/templates/xoo-aff-inline-style.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: social login, login customizer, registration, popup, custom registration fields

easy-login-woocommerce/xoo-el-main.php 92% from 13 tests

The primary PHP file in "Login/Signup Popup ( Inline Form + Woocommerce )" version 2.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-login-woocommerce.php" instead of "xoo-el-main.php")

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
Success! There were no dangerous files found in this plugin26,863 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
SVG4009,573
PHP642,1975468,784
JavaScript115572305,239
CSS133251013,252
XML14015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity39.59
▷ Minimum class complexity2.00
▷ Maximum class complexity217.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods198
▷ Static methods2211.11%
▷ Public methods19095.96%
▷ Protected methods42.02%
▷ Private methods42.02%
Functions31
▷ Named functions2683.87%
▷ Anonymous functions516.13%
Constants14
▷ Global constants14100.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
1 PNG file occupies 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
xoo-form-fields-fw/countries/flags32.png87.02KB51.06KB▼ 41.32%