Benchmarks
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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.47ms] Passed 4 tests
This is a short check of server-side resources used by Dynamic Password
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.14 ▼3.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.90 ▼14.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.58 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 77.48 ▼15.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.57 ▲0.44 |
Dynamic Password /wp-admin/options-general.php?page=dynamic-password | 3.24 | 30.04 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Dynamic Password
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.66 ▼0.97 | 1.73 ▼0.63 | 44.20 ▲0.61 |
Dashboard /wp-admin | 2,225 ▲40 | 4.83 ▼1.07 | 109.52 ▼8.30 | 43.37 ▼2.94 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.04 ▼0.02 | 36.12 ▲1.55 | 39.10 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,528 ▲11 | 23.41 ▲5.61 | 648.97 ▼2.36 | 58.45 ▲5.73 |
Media Library /wp-admin/upload.php | 1,407 ▲25 | 4.25 ▲0.06 | 96.97 ▲0.12 | 45.03 ▲0.41 |
Dynamic Password /wp-admin/options-general.php?page=dynamic-password | 807 | 2.03 | 25.86 | 24.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/dynamic-password/dynamic-password.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function DY_PWD\\dyPwd__() in wp-content/plugins/dynamic-password/inc/utils.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function DY_PWD\\add_action() in wp-content/plugins/dynamic-password/inc/backend.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dynamic-password/inc/authenticate.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=dynamic-password
- > Network (severe)
http://localhost:35729/livereload.js - Failed to load resource: net::ERR_CONNECTION_REFUSED
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: password, protection, security, dynamic
dynamic-password/dynamic-password.php 92% from 13 tests
"Dynamic Password" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected408 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 92 | 305 |
Sass | 1 | 21 | 0 | 78 |
CSS | 1 | 8 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected