84% password-confirm-action

Code Review | Password Confirm Action

WordPress plugin Password Confirm Action scored84%from 54 tests.

About plugin

  • Plugin page: password-confirm-...
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.2.2
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: May 11, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /846 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by Password Confirm Action
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.11 ▼1.01
Dashboard /wp-admin3.33 ▲0.0344.74 ▼5.89
Posts /wp-admin/edit.php3.39 ▲0.0243.81 ▼3.41
Add New Post /wp-admin/post-new.php5.92 ▲0.0292.06 ▲0.02
Media Library /wp-admin/upload.php3.26 ▲0.0234.89 ▲2.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Password Confirm Action
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.11 ▼1.564.98 ▲3.1541.87 ▼2.86
Dashboard /wp-admin2,206 ▲185.87 ▲0.96107.60 ▲2.2839.13 ▼4.14
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.26 ▼0.8132.38 ▼2.77
Add New Post /wp-admin/post-new.php1,538 ▲523.16 ▼0.08639.25 ▼35.2148.44 ▼10.20
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.1693.35 ▼6.9340.57 ▼3.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/password-confirm-action/password-confirm-action.php:45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
There were not plugin tags detected

password-confirm-action/password-confirm-action.php 92% from 13 tests

"Password Confirm Action" version 0.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 characters long)

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
There were no executable files found in this plugin278 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1366092
JavaScript124480
CSS18059
Markdown132047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin