80% advanced-password-security

Code Review | Advanced Password Security

WordPress plugin Advanced Password Security scored80%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: 6.3.1
  • 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

10+ active /1,192 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.89MB] [CPU: ▼58.04ms] Passed 4 tests

A check of server-side resources used by Advanced Password Security
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.375.25 ▼37.72
Dashboard /wp-admin2.12 ▼1.196.83 ▼46.86
Posts /wp-admin/edit.php2.12 ▼1.246.40 ▼49.57
Add New Post /wp-admin/post-new.php2.12 ▼3.776.53 ▼98.00
Media Library /wp-admin/upload.php2.12 ▼1.116.51 ▼31.39

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
aps_settings
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Password Security
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7213.15 ▼1.234.54 ▲2.9140.79 ▼2.65
Dashboard /wp-admin2,224 ▲364.87 ▼0.02106.89 ▲1.1444.16 ▲4.05
Posts /wp-admin/edit.php2,107 ▲152.06 ▲0.0738.93 ▼4.2139.47 ▲4.36
Add New Post /wp-admin/post-new.php1,543 ▲1523.37 ▲4.93690.07 ▲57.0055.04 ▲3.59
Media Library /wp-admin/upload.php1,406 ▲184.15 ▼0.1294.13 ▼16.0140.31 ▼7.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.)
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • aps_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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
2 plugin tags: security, password

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
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin503 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP48113324
PO File2192281
CSS17064
SVG10134

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods936.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
There were not PNG files found in your plugin