84% fancy-login-form

Code Review | Fancy Login Form

WordPress plugin Fancy Login Form scored84%from 54 tests.

About plugin

  • Plugin page: fancy-login-form
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Mar 8, 2021
  • Number of updates: 6
  • Update frequency: every 7.8 days
  • Top authors: mohsinghouri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.18ms] Passed 4 tests

An overview of server-side resources used by Fancy Login Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.71 ▲1.72
Dashboard /wp-admin3.34 ▲0.0351.35 ▼1.85
Posts /wp-admin/edit.php3.39 ▲0.0348.10 ▼0.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.01 ▼19.56
Media Library /wp-admin/upload.php3.26 ▲0.0336.55 ▲1.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Fancy Login Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.61 ▼0.808.72 ▲6.9648.34 ▲5.40
Dashboard /wp-admin2,215 ▲275.84 ▲0.9795.18 ▼12.0837.09 ▼7.63
Posts /wp-admin/edit.php2,101 ▲152.03 ▲0.0234.89 ▼1.0333.53 ▼1.14
Add New Post /wp-admin/post-new.php1,540 ▲718.46 ▼4.79612.67 ▼108.5953.27 ▼8.57
Media Library /wp-admin/upload.php1,400 ▲154.15 ▼0.1095.02 ▼13.8441.03 ▼7.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fancy-login-form/fancy-login-form.php:19
    • > PHP Warning
      Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/fancy-login-form/fancy-login-form.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/fancy-login-form/fancy-login-form-backend.php:2

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === fancy-login-form === )
The official readme.txt is a good inspiration

fancy-login-form/fancy-login-form.php Passed 13 tests

This is the main PHP file of "Fancy Login Form" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
46 characters long description:
You can use the plugin to for fancy login form

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin404 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1153184
PHP22072174
JavaScript13146

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.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin