90% tcbd-lost-password-remove

Code Review | TCBD Lost Password Remover

WordPress plugin TCBD Lost Password Remover scored90%from 54 tests.

About plugin

  • Plugin page: tcbd-lost-passwor...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Jul 31, 2015
  • Latest release: Aug 22, 2015
  • Number of updates: 9
  • Update frequency: every 2.4 days
  • Top authors: tcoder (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.51ms] Passed 4 tests

A check of server-side resources used by TCBD Lost Password Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.48 ▲0.14
Dashboard /wp-admin3.32 ▲0.0149.78 ▲0.28
Posts /wp-admin/edit.php3.37 ▲0.0146.57 ▼5.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.10 ▼9.30
Media Library /wp-admin/upload.php3.24 ▲0.0142.17 ▲7.04

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TCBD Lost Password Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2714.18 ▼0.381.86 ▼0.3744.44 ▲1.07
Dashboard /wp-admin2,192 ▲155.58 ▼0.0887.34 ▼10.2338.39 ▼1.66
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0136.49 ▼3.8832.55 ▼8.14
Add New Post /wp-admin/post-new.php1,536 ▲123.00 ▲4.98698.01 ▲74.1657.87 ▼10.03
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0399.72 ▼5.8744.05 ▲1.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: remove lost password link, tcbd, lost password remover, comments, remove...

tcbd-lost-password-remove/plugin-hook.php 92% from 13 tests

This is the main PHP file of "TCBD Lost Password Remover" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tcbd-lost-password-remove.php" instead of "plugin-hook.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152132

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin