78% flaming-password-reset

Code Review | Flaming Password Reset

WordPress plugin Flaming Password Reset scored 78% from 54 tests.

About plugin

  • Plugin page: flaming-password-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Aug 15, 2017
  • Number of updates: 18
  • Update frequency: every 41.8 days
  • Top authors: jcaruso001 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 2,088 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.11MB] [CPU: ▼4.83ms] Passed 4 tests

A check of server-side resources used by Flaming Password Reset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.05 ▼7.35
Dashboard /wp-admin3.42 ▲0.1243.46 ▼6.63
Posts /wp-admin/edit.php3.52 ▲0.1746.82 ▼0.95
Add New Post /wp-admin/post-new.php6.10 ▲0.2184.89 ▼2.57
Media Library /wp-admin/upload.php3.36 ▲0.1333.34 ▼2.77
Flaming Password Reset /wp-admin/options-general.php?page=FlamingPasswordReset3.3238.69
Reset User Password /wp-admin/admin.php?page=flaming_password_reset_user3.2628.05

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
FlamingPasswordReset
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Flaming Password Reset: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.182.03 ▼0.1041.59 ▼10.14
Dashboard /wp-admin2,210 ▲224.84 ▼0.05108.07 ▼3.1040.65 ▼6.65
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0239.19 ▲2.3333.53 ▼3.10
Add New Post /wp-admin/post-new.php1,536 ▲323.27 ▲0.27657.93 ▼22.8458.96 ▲5.80
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0794.17 ▼18.3042.59 ▼2.72
Flaming Password Reset /wp-admin/options-general.php?page=FlamingPasswordReset1,3635.57107.4059.52
Reset User Password /wp-admin/admin.php?page=flaming_password_reset_user1,3371.6826.2131.66

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
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/flaming-password-reset/views/EmailTemplate.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant FLAMING_PASSWORDRESET_VER - assumed 'FLAMING_PASSWORDRESET_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/flaming-password-reset/views/Settings.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/flaming-password-reset/flaming_password_reset.php:20
    • > PHP Warning
      Use of undefined constant FLAMING_PASSWORDRESET_VER - assumed 'FLAMING_PASSWORDRESET_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/flaming-password-reset/views/ResetUser.php on line 12
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/flaming-password-reset/views/Settings.php:19
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/flaming-password-reset/views/ResetUser.php:14
    • > PHP Warning
      Use of undefined constant FLAMING_PASSWORD_RESET_PAGE - assumed 'FLAMING_PASSWORD_RESET_PAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/flaming-password-reset/views/ResetUser.php on line 14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #4 (You should then see one of two messages; 'Successfully changed the users password and sent them an email.' which is obvious, or you may also see an error message. This typically means that you�ll need to setup an SMTP server.)
  • Plugin Name: Please specify the plugin name on the first line ( === flaming-password-reset === )
Please take inspiration from this readme.txt

flaming-password-reset/flaming_password_reset.php 92% from 13 tests

"Flaming Password Reset" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("flaming-password-reset.php" instead of "flaming_password_reset.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin513 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6101203394
CSS120092
JavaScript151826
Markdown1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.67
▷ Minimum class complexity7.00
▷ Maximum class complexity12.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1789.47%
▷ Protected methods210.53%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin