73% login-rebuilder

Code Review | Login rebuilder

WordPress plugin Login rebuilder scored73%from 54 tests.

About plugin

  • Plugin page: login-rebuilder
  • Plugin version: 2.8.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.0-6.4.0
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Nov 7, 2023
  • Number of updates: 65
  • Update frequency: every 60.7 days
  • Top authors: tmatsuur (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20,000+ active /189,228 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.30ms] Passed 4 tests

An overview of server-side resources used by Login rebuilder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.74 ▼1.14
Dashboard /wp-admin3.34 ▼0.0151.28 ▼14.69
Posts /wp-admin/edit.php3.39 ▲0.0347.84 ▲3.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.69 ▼7.17
Media Library /wp-admin/upload.php3.26 ▲0.0334.82 ▲1.82
XML-RPC /wp-admin/options-general.php?page=login-rebuilder-xmlrpc-properties3.3233.06
Login rebuilder /wp-admin/options-general.php?page=login-rebuilder-properties3.6540.36

Server storage [IO: ▲0.39MB] [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: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
login-rebuilder-db-version
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Login rebuilder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11314.37 ▲0.262.14 ▲0.3343.55 ▼0.89
Dashboard /wp-admin2,255 ▲785.65 ▼0.0186.85 ▼2.6441.15 ▲1.10
Posts /wp-admin/edit.php2,108 ▲81.97 ▲0.0035.62 ▼0.0232.97 ▼4.41
Add New Post /wp-admin/post-new.php1,532 ▲423.58 ▲0.79636.51 ▲6.2848.83 ▼1.17
Media Library /wp-admin/upload.php1,411 ▲174.22 ▲0.01101.63 ▲3.2040.16 ▼0.20
XML-RPC /wp-admin/options-general.php?page=login-rebuilder-xmlrpc-properties1,5471.6825.9525.38
Login rebuilder /wp-admin/options-general.php?page=login-rebuilder-properties1,3778.5588.8438.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/login-rebuilder/uninstall.php+40
    Constant LOGIN_REBUILDER_PROPERTIES already defined
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/login-rebuilder/login-rebuilder.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This plug-in menu.), #2 (This plug-in settings.), #3 (Widget on the dashboard.), #4 (This plug-in XML-RPC settings.), #5 (Other settings.), #6 (Lock file settings.), #7 (Widget to display currently logged in users.)
The official readme.txt is a good inspiration

login-rebuilder/login-rebuilder.php 92% from 13 tests

"Login rebuilder" version 2.8.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,069 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42521,3082,779
PO File1150203290

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity590.00
▷ Minimum class complexity590.00
▷ Maximum class complexity590.00
Average method complexity6.31
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods4843.24%
▷ Protected methods00.00%
▷ Private methods6356.76%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants46
▷ Global constants817.39%
▷ Class constants3882.61%
▷ Public constants38100.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
7 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png20.15KB18.63KB▼ 7.51%
screenshot-2.png38.57KB36.29KB▼ 5.91%
screenshot-5.png6.35KB6.05KB▼ 4.75%
screenshot-7.png9.81KB4.54KB▼ 53.79%
screenshot-4.png33.71KB32.69KB▼ 3.02%