78% all-my-login-page

Code Review | All my login page.

WordPress plugin All my login page. scored78%from 54 tests.

About plugin

  • Plugin page: all-my-login-page
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 11, 2015
  • Latest release: Oct 6, 2015
  • Number of updates: 8
  • Update frequency: every 3.3 days
  • Top authors: aplswd (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,238 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
Install script ran successfully

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

An overview of server-side resources used by All my login page.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.0441.39 ▼5.15
Dashboard /wp-admin3.61 ▲0.0550.56 ▼0.40
Posts /wp-admin/edit.php3.73 ▲0.0556.03 ▲5.09
Add New Post /wp-admin/post-new.php6.21 ▲0.0788.83 ▼19.95
Media Library /wp-admin/upload.php3.54 ▲0.0541.82 ▼2.45

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

All my login page.: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲22216.75 ▲2.481.71 ▼0.0645.02 ▲0.48
Dashboard /wp-admin2,404 ▲2278.34 ▲2.63160.46 ▲69.1145.44 ▲1.92
Posts /wp-admin/edit.php2,116 ▲162.27 ▲0.2135.95 ▼3.9737.05 ▲3.48
Add New Post /wp-admin/post-new.php6,396 ▲4,86528.02 ▲4.791,088.64 ▲408.5937.75 ▼19.80
Media Library /wp-admin/upload.php1,430 ▲304.30 ▲0.10108.95 ▲4.5646.84 ▼0.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/all-my-login-page/all_my_login.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-my-login-page/all_my_options.php:36

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === all-my-login-page === )
The official readme.txt is a good inspiration

all-my-login-page/all_my_login.php 92% from 13 tests

Analyzing the main PHP file in "All my login page." version 1.2
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("all-my-login-page.php" instead of "all_my_login.php")

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
There were no executable files found in this plugin482 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP27555252
CSS54512205
JavaScript15025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
image/all_my_logo.png10.50KB3.74KB▼ 64.33%