84% password-strength-indicator-using-jquery-and-xml

Code Review | Password Strength Indicator using jQuery and XML

WordPress plugin Password Strength Indicator using jQuery and XML scored84%from 54 tests.

About plugin

  • Plugin page: password-strength...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jun 4, 2013
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: bryiantan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Password Strength Indicator using jQuery and XML
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.46 ▼3.91
Dashboard /wp-admin3.32 ▼0.0250.66 ▼18.38
Posts /wp-admin/edit.php3.38 ▲0.0158.22 ▲4.10
Add New Post /wp-admin/post-new.php5.91 ▲0.0190.00 ▼11.32
Media Library /wp-admin/upload.php3.25 ▲0.0139.05 ▲0.42

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

Browser metrics Passed 4 tests

Checking browser requirements for Password Strength Indicator using jQuery and XML
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.74 ▲0.382.01 ▼0.3741.10 ▼2.61
Dashboard /wp-admin2,267 ▲935.73 ▲0.2295.39 ▼8.5039.91 ▼6.46
Posts /wp-admin/edit.php2,172 ▲692.04 ▲0.0939.24 ▲3.6735.12 ▼1.55
Add New Post /wp-admin/post-new.php1,540 ▲1423.09 ▲0.00752.06 ▲52.3074.56 ▲6.70
Media Library /wp-admin/upload.php1,472 ▲724.33 ▲0.16102.78 ▼3.1444.60 ▼0.43

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 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-strength-indicator-using-jquery-and-xml/password-strength-indicator-using-jquery-and-xml.php:93

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 Passed 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
4 plugin tags: password strength validation with jquery, jquery password indicator, jquery password strength meter, jquery password strength plugin

password-strength-indicator-using-jquery-and-xml/password-strength-indicator-using-jquery-and-xml.php Passed 13 tests

Analyzing the main PHP file in "Password Strength Indicator using jQuery and XML" version 1.0
47 characters long description:
Password Strength Indicator with jQuery and XML

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
Good job! No executable or dangerous file extensions detected138 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182264
XSLT11057
XML10115
JavaScript275582

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png31.58KB15.91KB▼ 49.62%