Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.58ms] Passed 4 tests
A check of server-side resources used by Prevent Password Reuse
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.77 ▲2.45 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.25 ▼5.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.95 ▼1.78 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.07 ▼5.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.86 ▲4.34 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_password_log |
New WordPress options |
---|
can_compress_scripts |
ppr_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Prevent Password Reuse
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.24 ▼0.11 | 1.77 ▲0.22 | 41.03 ▼3.11 |
Dashboard /wp-admin | 2,189 ▲9 | 5.55 ▼0.10 | 82.35 ▼3.80 | 38.48 ▼5.27 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.06 | 39.38 ▲1.69 | 38.14 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.54 ▲5.11 | 643.97 ▲10.52 | 53.48 ▼7.44 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.04 | 106.71 ▼5.66 | 45.90 ▲3.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_password_log
- The uninstall procedure has failed, leaving 7 options in the database
- ppr_db_version
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/prevent-password-reuse/ppr-class.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-includes/class-phpass.php' (include_path='.:/usr/share/php') in wp-content/plugins/prevent-password-reuse/ppr-class.php on line 3
- > PHP Warning
require_once(ABSPATHwp-includes/class-phpass.php): failed to open stream: No such file or directory in wp-content/plugins/prevent-password-reuse/ppr-class.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/prevent-password-reuse/prevent-password-reuse.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
3 plugin tags: security, prevent password reuse, password
prevent-password-reuse/prevent-password-reuse.php Passed 13 tests
The main PHP file in "Prevent Password Reuse" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
A Simple plugin that securely keeps track of all your users previous passwords and prevents their reuse.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin104 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 20 | 104 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin