84% password-pointer

Code Review | Password Pointer

WordPress plugin Password Pointer scored84%from 54 tests.

About plugin

  • Plugin page: password-pointer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2
  • WordPress version: 6.3.1
  • First release: Nov 9, 2011
  • Latest release: May 14, 2019
  • Number of updates: 13
  • Update frequency: every 211.0 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Password Pointer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.42 ▲1.31
Dashboard /wp-admin3.31 ▲0.0041.76 ▼2.81
Posts /wp-admin/edit.php3.36 ▲0.0047.69 ▼1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.08 ▼13.77
Media Library /wp-admin/upload.php3.23 ▲0.0032.23 ▲2.14

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Password Pointer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.78 ▲0.171.60 ▲0.0738.72 ▲1.26
Dashboard /wp-admin2,236 ▲595.74 ▲0.0798.81 ▲1.3943.44 ▼3.25
Posts /wp-admin/edit.php2,144 ▲442.30 ▲0.3147.96 ▲7.6534.69 ▼1.63
Add New Post /wp-admin/post-new.php1,537 ▲1123.18 ▼0.42652.31 ▼35.4255.42 ▲5.65
Media Library /wp-admin/upload.php1,438 ▲444.39 ▲0.21104.16 ▲8.3144.95 ▲5.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 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
Please fix the following
  • 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-pointer/plugin.php:45

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: password, pointer, admin

password-pointer/plugin.php 92% from 13 tests

The primary PHP file in "Password Pointer" version 1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("password-pointer.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162936

PHP code Passed 2 tests

An short overview of 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.18
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 functions2100.00%
▷ Anonymous functions00.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
PNG images were not found in this plugin