84% cb-lost-password-remover

Code Review | CB Lost Password Remover

WordPress plugin CB Lost Password Remover scored 84% from 54 tests.

About plugin

  • Plugin page: cb-lost-password-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: May 1, 2015
  • Latest release: Jul 26, 2022
  • Number of updates: 31
  • Update frequency: every 85.3 days
  • Top authors: hmbashar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,572 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.01MB] [CPU: ▲2.13ms] Passed 4 tests

This is a short check of server-side resources used by CB Lost Password Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.85 ▲4.39
Dashboard /wp-admin3.32 ▲0.0145.60 ▼2.44
Posts /wp-admin/edit.php3.37 ▲0.0149.14 ▲4.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.77 ▲7.95
Media Library /wp-admin/upload.php3.24 ▲0.0135.24 ▲1.90

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by CB Lost Password Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲4214.48 ▲0.301.68 ▼0.5342.05 ▼8.51
Dashboard /wp-admin2,206 ▲184.79 ▼1.09107.00 ▼8.0442.59 ▼2.43
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0340.69 ▲4.8234.68 ▲1.33
Add New Post /wp-admin/post-new.php1,533 ▼1822.96 ▲4.80598.59 ▼33.6249.31 ▼17.66
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.0693.66 ▼10.8542.97 ▲0.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cb-lost-password-remover/cb-lost-password-remover.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

cb-lost-password-remover/cb-lost-password-remover.php Passed 13 tests

The main PHP file in "CB Lost Password Remover" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
95 characters long description:
Removes the ability for non admin users to reset/lost password remover/ their passwords option.

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
Everything looks great! No dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14726

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions0
▷ Named functions00.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