73% wordpass

Code Review | WordPass

WordPress plugin WordPass scored73%from 54 tests.

About plugin

  • Plugin page: wordpass
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.8
  • WordPress version: 6.3.1
  • First release: May 28, 2016
  • Latest release: Aug 5, 2021
  • Number of updates: 9
  • Update frequency: every 210.7 days
  • Top authors: cbutlerjr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,861 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.36ms] Passed 4 tests

A check of server-side resources used by WordPass
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.47 ▼4.39
Dashboard /wp-admin3.35 ▲0.0452.14 ▼0.97
Posts /wp-admin/edit.php3.46 ▲0.1052.65 ▼1.94
Add New Post /wp-admin/post-new.php5.93 ▲0.04102.73 ▼2.13
Media Library /wp-admin/upload.php3.27 ▲0.0441.60 ▲5.85
WordPass /wp-admin/options-general.php?page=wordpass3.2133.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WordPass
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.24 ▼0.141.78 ▲0.2041.05 ▲0.93
Dashboard /wp-admin2,199 ▲195.59 ▼0.0286.72 ▼5.6438.56 ▼4.86
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0238.36 ▼3.4233.37 ▼2.35
Add New Post /wp-admin/post-new.php1,529 ▲323.73 ▲0.01680.39 ▲36.8353.46 ▼0.03
Media Library /wp-admin/upload.php1,407 ▲104.24 ▲0.0796.74 ▼5.5843.17 ▼4.65
WordPass /wp-admin/options-general.php?page=wordpass8302.1624.0634.25

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wordpass
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wordpass
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wordpass/uninstall.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wordpass/wordpass.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Settings page.) image not found
The official readme.txt is a good inspiration

wordpass/wordpass.php Passed 13 tests

"WordPass" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
Creates random word based passwords.

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
There were no executable files found in this plugin161 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP561197161

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods00.00%
▷ Private methods350.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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