84% plain-custom-login

Code Review | Plain Custom Login

WordPress plugin Plain Custom Login scored84%from 54 tests.

About plugin

  • Plugin page: plain-custom-login
  • Plugin version: 0.23.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 8, 2019
  • Latest release: Nov 14, 2019
  • Number of updates: 5
  • Update frequency: every 33.0 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼0.14ms] Passed 4 tests

This is a short check of server-side resources used by Plain Custom Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.32 ▼0.11
Dashboard /wp-admin3.41 ▲0.1148.46 ▲5.67
Posts /wp-admin/edit.php3.52 ▲0.1750.93 ▲7.10
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.62 ▼6.75
Media Library /wp-admin/upload.php3.33 ▲0.1035.40 ▲0.64
Plain Custom Login /wp-admin/options-general.php?page=PlainCustomLogin/settings.php3.3032.60

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Plain Custom Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.35 ▼0.621.88 ▲0.1645.59 ▲1.73
Dashboard /wp-admin2,236 ▲484.99 ▼0.91103.61 ▼1.3139.76 ▲2.23
Posts /wp-admin/edit.php2,124 ▲352.33 ▲0.3542.33 ▲3.1137.34 ▲2.18
Add New Post /wp-admin/post-new.php1,538 ▼423.26 ▲5.00634.11 ▲24.9336.32 ▼28.05
Media Library /wp-admin/upload.php1,421 ▲304.45 ▲0.2798.97 ▼3.9341.25 ▼3.47
Plain Custom Login /wp-admin/options-general.php?page=PlainCustomLogin/settings.php1,8243.0877.6127.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_theme_textdomain() in wp-content/plugins/plain-custom-login/plain-custom-login.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

plain-custom-login/plain-custom-login.php Passed 13 tests

The main PHP script in "Plain Custom Login" version 0.23.2 is automatically included on every request by WordPress
106 characters long description:
Lightweight plugin to let you customise the login page and popup to better reflect your site's appearance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin994 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
LESS2827454
PHP17551276
CSS100246
JavaScript17218

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.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin