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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.09ms] Passed 4 tests
This is a short check of server-side resources used by Memorable Password
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 34.17 ▼3.83 |
Dashboard /wp-admin | 3.41 ▲0.06 | 44.73 ▼14.03 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.83 ▲1.54 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.76 ▼4.02 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.08 ▲2.01 |
Memorable Password /wp-admin/options-general.php?page=memorable-password | 3.30 | 29.72 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
memorable-password |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Memorable Password
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.18 ▼1.12 | 1.64 ▼0.42 | 41.02 ▼4.73 |
Dashboard /wp-admin | 2,213 ▲28 | 4.86 ▼1.01 | 98.33 ▼4.01 | 39.62 ▲2.47 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 40.74 ▲3.18 | 35.51 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,541 ▲12 | 23.47 ▲5.14 | 593.71 ▼29.14 | 59.04 ▼2.89 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.02 | 97.10 ▲2.50 | 42.80 ▲2.10 |
Memorable Password /wp-admin/options-general.php?page=memorable-password | 813 | 2.06 | 24.45 | 27.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- memorable-password
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/memorable-password/tests/bootstrap.php on line 14
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/memorable-password/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/memorable-password/memorable-password.php:44
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/memorable-password/tests/test-memorable-password.php:8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in memorable-password/assets to your readme.txt
memorable-password/memorable-password.php Passed 13 tests
This is the main PHP file of "Memorable Password" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
This plugin generates a memorable and strong password.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected447 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 39 | 335 |
Bourne Shell | 1 | 21 | 7 | 98 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin