83% custom-login-and-signup-widget

Code Review | Custom Login And Signup Widget

WordPress plugin Custom Login And Signup Widget scored83%from 54 tests.

About plugin

  • Plugin page: custom-login-and-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-3.9
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: May 28, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: bitto.kazi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,266 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.66ms] Passed 4 tests

A check of server-side resources used by Custom Login And Signup Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.27 ▼6.31
Dashboard /wp-admin3.36 ▲0.0545.44 ▼5.17
Posts /wp-admin/edit.php3.41 ▲0.0547.65 ▼0.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0592.07 ▼10.02
Media Library /wp-admin/upload.php3.28 ▲0.0535.83 ▼1.12
Custom Login And Signup Widget /wp-admin/options-general.php?page=custom-login-and-signup-widget3.2431.20

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

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

Browser metrics Passed 4 tests

Custom Login And Signup Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.48 ▲0.181.95 ▲0.1940.33 ▼6.05
Dashboard /wp-admin2,210 ▲195.90 ▲1.01111.16 ▼6.4641.16 ▼10.01
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0539.85 ▼0.1835.73 ▲0.35
Add New Post /wp-admin/post-new.php1,517 ▲317.61 ▼0.02613.18 ▼68.1950.11 ▼8.50
Media Library /wp-admin/upload.php1,389 ▲44.19 ▲0.0099.39 ▼15.3340.44 ▼6.98
Custom Login And Signup Widget /wp-admin/options-general.php?page=custom-login-and-signup-widget7752.1823.9025.66

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_wpb_widget1
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/custom-login-and-signup-widget/frndzk_adminclsw.php
    • > /wp-content/plugins/custom-login-and-signup-widget/bitto.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 ([Screenshot1](http://bitto.us/wp/fpfam.png)) image required
The official readme.txt is a good inspiration

custom-login-and-signup-widget/bitto.php 85% from 13 tests

The entry point to "Custom Login And Signup Widget" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("custom-login-and-signup-widget.php" instead of "bitto.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 442 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin511 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP413828354
CSS113157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fpfam.PNG11.01KB3.84KB▼ 65.13%