84% replace-protected-password

Code Review | Replace Protected Password

WordPress plugin Replace Protected Password scored84%from 54 tests.

About plugin

  • Plugin page: replace-protected...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Nov 18, 2022
  • Number of updates: 25
  • Update frequency: every 88.7 days
  • Top authors: ko31 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.48ms] Passed 4 tests

This is a short check of server-side resources used by Replace Protected Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.12 ▼8.64
Dashboard /wp-admin3.34 ▼0.0149.42 ▼12.56
Posts /wp-admin/edit.php3.39 ▲0.0351.42 ▼0.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.53 ▼8.64
Media Library /wp-admin/upload.php3.26 ▲0.0337.93 ▲3.44
Replace Protected Password /wp-admin/options-general.php?page=replace-protected-password3.2331.44

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Replace Protected Password: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4614.34 ▼0.021.90 ▼0.3039.73 ▼10.17
Dashboard /wp-admin2,202 ▲255.63 ▼0.0496.99 ▲3.0141.47 ▼1.23
Posts /wp-admin/edit.php2,105 ▲22.00 ▲0.0440.52 ▼5.9735.89 ▲1.45
Add New Post /wp-admin/post-new.php1,529 ▲123.42 ▲0.36657.15 ▼39.9362.43 ▲11.10
Media Library /wp-admin/upload.php1,401 ▲14.21 ▼0.0298.61 ▼8.5444.55 ▼2.81
Replace Protected Password /wp-admin/options-general.php?page=replace-protected-password8272.0027.0927.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/replace-protected-password/replace-protected-password.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

replace-protected-password/replace-protected-password.php Passed 13 tests

The primary PHP file in "Replace Protected Password" version 1.0.3 is used by WordPress to initiate all plugin functionality
77 characters long description:
This plugin allows you to update the password for the post or page at a time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12124126
PO File1131643

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected