89% password-passthrough

Code Review | Password Passthrough

WordPress plugin Password Passthrough scored89%from 54 tests.

About plugin

  • Plugin page: password-passthrough
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Oct 11, 2021
  • Number of updates: 7
  • Update frequency: every 327.3 days
  • Top authors: KaeruCT (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /4,134 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.46ms] Passed 4 tests

This is a short check of server-side resources used by Password Passthrough
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0130.99 ▼8.12
Dashboard /wp-admin3.31 ▲0.0144.93 ▼3.76
Posts /wp-admin/edit.php3.36 ▲0.0045.39 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.32 ▲8.86
Media Library /wp-admin/upload.php3.23 ▲0.0035.31 ▲1.32

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

Analyzing filesystem and database footprints of this plugin
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
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Password Passthrough
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.161.68 ▼0.0041.84 ▼2.33
Dashboard /wp-admin2,208 ▲164.89 ▼0.97106.45 ▼2.7039.59 ▼2.54
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0439.91 ▲2.2035.59 ▲1.84
Add New Post /wp-admin/post-new.php1,521 ▲123.17 ▼0.23671.16 ▼15.4465.87 ▲6.96
Media Library /wp-admin/upload.php1,390 ▲24.19 ▼0.0198.29 ▼0.7641.44 ▼3.13

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
5 plugin tags: password, post, protected, page, url

password-passthrough/password-url-passthrough.php 85% from 13 tests

Analyzing the main PHP file in "Password Passthrough" version 1.1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("password-passthrough.php" instead of "password-url-passthrough.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 548 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected33 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172233

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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