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.04MB] [CPU: ▼2.57ms] Passed 4 tests
Server-side resources used by PasswordSentry
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.39 ▼2.66 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.17 ▼6.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.04 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.89 ▼1.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.62 ▲1.08 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
pswpp_settings |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
PasswordSentry: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.22 ▼0.52 | 1.72 ▼0.10 | 39.39 ▼5.61 |
Dashboard /wp-admin | 2,196 ▲16 | 5.61 ▲0.01 | 96.19 ▼2.46 | 41.35 ▼0.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.02 | 41.01 ▲3.52 | 37.88 ▲4.11 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.33 ▲0.48 | 598.13 ▼101.05 | 46.62 ▼10.56 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▼0.05 | 98.40 ▼2.90 | 44.67 ▼0.18 |
Password Sentry /wp-admin/passwordsentry.php | 26 | 0.41 | 0.11 | 13.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- pswpp_settings
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 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 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/passwordsentry/passwordsentry.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/passwordsentry.php
- > Network (severe)
wp-admin/passwordsentry.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 18 tag instead of maximum 10
passwordsentry/passwordsentry.php Passed 13 tests
The primary PHP file in "PasswordSentry" version 1.0.13 is used by WordPress to initiate all plugin functionality
88 characters long description:
Integrates Password Sentry (PS) app into the WordPress (WP) environment to track logins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected231 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 14 | 211 |
CSS | 3 | 0 | 10 | 19 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logops.png | 11.63KB | 5.88KB | ▼ 49.49% |