10% easy-sign-up

Code Review | Easy Sign Up

WordPress plugin Easy Sign Up scored 10% from 54 tests.

About plugin

  • Plugin page: easy-sign-up
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8.9
  • WordPress version: 5.9.2
  • First release: Apr 8, 2010
  • Latest release: Nov 11, 2017
  • Number of updates: 150
  • Update frequency: every 18.6 days
  • Top authors: Greenweb (100%)

Code review

54 tests

User reviews

53 reviews

Install metrics

4,000+ active / 186,784 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/easy-sign-up/lib/esu-front-end-class.php+305
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼2.24MB] [CPU: ▼343.50ms] Passed 4 tests

An overview of server-side resources used by Easy Sign Up
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.0620.46 ▼12.02
Dashboard /wp-admin2.08 ▼1.325.79 ▼38.47
Posts /wp-admin/edit.php2.09 ▼1.556.85 ▼35.45
Add New Post /wp-admin/post-new.php2.08 ▼4.887.10 ▼1,271.39
Media Library /wp-admin/upload.php2.08 ▼1.215.60 ▼28.69
Simple Data /wp-admin/admin.php?page=esu_view_simple_data_page2.095.85
Easy Sign Up /wp-admin/admin.php?page=esu_options_pg2.094.74

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 1 new option
New WordPress options
widget_easysignup-widget

Browser metrics Passed 4 tests

A check of browser resources used by Easy Sign Up
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,942 ▲20015.92 ▲0.6214.98 ▲4.504.17 ▲2.13
Dashboard /wp-admin2,910 ▲566.14 ▼0.03129.48 ▼40.11182.59 ▲16.60
Posts /wp-admin/edit.php2,724 ▲363.24 ▲0.0064.54 ▼16.86142.95 ▼9.38
Add New Post /wp-admin/post-new.php1,683 ▲4916.10 ▼0.59505.47 ▼29.17227.07 ▲28.86
Media Library /wp-admin/upload.php1,725 ▲305.58 ▲0.04153.98 ▼25.06270.81 ▲45.87
Simple Data /wp-admin/admin.php?page=esu_view_simple_data_page1,0522.3857.08127.56
Easy Sign Up /wp-admin/admin.php?page=esu_options_pg2,1816.67192.78327.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/easy-sign-up/lib/esu-front-end-class.php+305
    Array and string offset access syntax with curly braces is deprecated
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_easysignup-widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=esu_options_pg
    • > Deprecated in wp-content/plugins/easy-sign-up/lib/esu-front-end-class.php+312
    Array and string offset access syntax with curly braces is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=esu_options_pg
    • > User deprecated in wp-includes/functions.php+5691
    contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=esu_view_simple_data_page
    • > Notice in wp-content/plugins/easy-sign-up/lib/esu-simple-data-page.php+96
    Trying to access array offset on value of type null

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'EsuAdmin' not found in wp-content/plugins/easy-sign-up/lib/esu-simple-data-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-sign-up/lib/esu-widget-class.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-sign-up/lib/esu-utility-functions.php:231

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

easy-sign-up/easy_sign_up.php 85% from 13 tests

The main PHP script in "Easy Sign Up" version 3.4.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-sign-up.php" instead of "easy_sign_up.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 434 characters long)

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
Good job! No executable or dangerous file extensions detected1,403 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP81552781,268
JavaScript21314112
CSS221523

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity26.33
▷ Minimum class complexity4.00
▷ Maximum class complexity54.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1225.00%
▷ Public methods4797.92%
▷ Protected methods00.00%
▷ Private methods12.08%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.67KB1.01KB▼ 39.73%
js/esubutton.png0.86KB1.02KB0.00%
images/gvw-clouds-01.png3.64KB2.78KB▼ 23.64%
images/easy-sign-up-icon-32by32.png1.47KB1.03KB▼ 29.65%
images/gvw-clouds-2.png3.44KB2.60KB▼ 24.59%