84% loginizr

Code Review | Loginizr

WordPress plugin Loginizr scored 84% from 54 tests.

About plugin

  • Plugin page: loginizr
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2015
  • Latest release: Oct 21, 2015
  • Number of updates: 3
  • Update frequency: every 2.3 days
  • Top authors: tifosi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 868 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
Installer ran successfully

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

This is a short check of server-side resources used by Loginizr
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.81 ▲2.49
Dashboard /wp-admin3.40 ▲0.1046.40 ▼14.79
Posts /wp-admin/edit.php3.45 ▲0.1047.66 ▼0.84
Add New Post /wp-admin/post-new.php5.98 ▲0.1095.93 ▲1.82
Media Library /wp-admin/upload.php3.33 ▲0.1036.27 ▲0.91

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Loginizr
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.28 ▼0.991.62 ▼0.1142.88 ▼5.48
Dashboard /wp-admin2,203 ▲155.80 ▲0.90100.02 ▼17.4941.16 ▼8.29
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0340.35 ▲4.0934.73 ▼0.01
Add New Post /wp-admin/post-new.php1,542 ▲2818.46 ▲0.87608.38 ▼65.8952.82 ▼0.83
Media Library /wp-admin/upload.php1,391 ▲34.19 ▲0.0495.32 ▼9.3941.64 ▼6.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 50% 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/loginizr/css/loginizr.css.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

loginizr/loginizr.php Passed 13 tests

"Loginizr" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Customise the WordPress login page from the admin customizer interface

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
Good job! No executable or dangerous file extensions detected641 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143236641

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods12
▷ Static methods00.00%
▷ Public methods1083.33%
▷ Protected methods216.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin