80% va-check-old-password

Code Review | VA Check Old Password

WordPress plugin VA Check Old Password scored 80% from 54 tests.

About plugin

  • Plugin page: va-check-old-pass...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 23, 2015
  • Latest release: Mar 21, 2018
  • Number of updates: 6
  • Update frequency: every 156.8 days
  • Top authors: kuck1u (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 672 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.84ms] Passed 4 tests

A check of server-side resources used by VA Check Old Password
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.92 ▼35.81
Dashboard /wp-admin2.09 ▼1.216.53 ▼45.58
Posts /wp-admin/edit.php2.09 ▼1.266.97 ▼44.65
Add New Post /wp-admin/post-new.php2.09 ▼3.796.14 ▼93.33
Media Library /wp-admin/upload.php2.09 ▼1.137.31 ▼29.18

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for VA Check Old Password
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.66 ▼0.574.56 ▲2.4937.89 ▼6.64
Dashboard /wp-admin2,200 ▲155.84 ▼0.01105.93 ▲0.5536.96 ▼8.12
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0640.56 ▲5.3334.63 ▲1.33
Add New Post /wp-admin/post-new.php1,514 ▼1617.61 ▼5.69673.28 ▼21.0452.11 ▼4.59
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0196.17 ▼0.0542.34 ▼0.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/va-check-old-password/va-check-old-password.php+82
    Undefined index: VA_CHECK_OLD_PASSWORD
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: security, password

va-check-old-password/va-check-old-password.php Passed 13 tests

"VA Check Old Password" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
This is a WordPress plugin that confirm old password before changing to new password.

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
No dangerous file extensions were detected93 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1187268
PO File14425

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ 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 methods240.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin