89% buddyforms-custom-login-page

Code Review | BuddyForms Custom Login

WordPress plugin BuddyForms Custom Login scored89%from 54 tests.

About plugin

  • Plugin page: buddyforms-custom...
  • Plugin version: 1.1.13
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Jun 12, 2023
  • Number of updates: 42
  • Update frequency: every 45.5 days
  • Top authors: svenl77 (92.86%)gfirem (9.52%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,772 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.09MB] [CPU: ▼2.18ms] Passed 4 tests

Analyzing server-side resources used by BuddyForms Custom Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.34 ▼1.38
Dashboard /wp-admin3.39 ▲0.0950.82 ▲1.34
Posts /wp-admin/edit.php3.44 ▲0.0846.18 ▲2.44
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.58 ▼11.13
Media Library /wp-admin/upload.php3.31 ▲0.0835.02 ▲3.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyForms Custom Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.25 ▼1.051.84 ▲0.0432.85 ▼11.07
Dashboard /wp-admin2,232 ▲414.92 ▼0.89113.63 ▼6.5644.87 ▼1.47
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0537.00 ▼1.1936.84 ▲1.64
Add New Post /wp-admin/post-new.php1,553 ▲3423.16 ▼0.02670.80 ▲22.8155.86 ▼11.65
Media Library /wp-admin/upload.php1,414 ▲234.30 ▲0.01105.22 ▲7.6647.96 ▲4.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
Everything seems fine, but this is not an exhaustive test

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: Please add images for these screenshots: #1 (**Settings Page** - Settings Page in the Admin under BuddyForms/ Settings/ Custom Login), #2 (**Login Form in the Frontend)
Please take inspiration from this readme.txt

buddyforms-custom-login-page/loader.php 85% from 13 tests

"BuddyForms Custom Login" version 1.1.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddyforms-custom-login-page.php" instead of "loader.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin575 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26044526
JavaScript12027
JSON10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.81
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
There were not PNG files found in your plugin