90% advanced-password-security

Code Review | Advanced Password Security

WordPress plugin Advanced Password Security scored 90% from 54 tests.

About plugin

  • Plugin page: advanced-password...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.1
  • WordPress version: 5.9.2
  • First release: Dec 28, 2017
  • Latest release: Jan 2, 2018
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: fclaussen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 961 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Advanced Password Security
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1351.96 ▲1.82
Dashboard /wp-admin3.48 ▲0.0732.22 ▼1.62
Posts /wp-admin/edit.php3.70 ▲0.0639.05 ▲0.65
Add New Post /wp-admin/post-new.php6.98 ▼0.02103.61 ▼1,230.72
Media Library /wp-admin/upload.php3.35 ▲0.0529.36 ▲0.98

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Password Security
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.25 ▲0.236.12 ▲0.252.28 ▲0.00
Dashboard /wp-admin2,914 ▲536.07 ▼0.14114.31 ▼18.18155.76 ▼6.02
Posts /wp-admin/edit.php2,707 ▲163.23 ▲0.0073.76 ▲10.77150.19 ▲10.49
Add New Post /wp-admin/post-new.php1,726 ▲6521.50 ▲5.17466.57 ▲52.45208.17 ▲50.66
Media Library /wp-admin/upload.php1,717 ▲225.48 ▼0.06139.07 ▲2.29196.12 ▲1.27

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
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • aps_settings

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)
The smoke test was a success, however most plugin functionality was not tested

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 just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: password, security

advanced-password-security/advanced-password-security.php 92% from 13 tests

The main PHP script in "Advanced Password Security" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected503 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File2192281

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity20.50
▷ Minimum class complexity9.00
▷ Maximum class complexity32.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods936.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG files were detected