Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼0.63ms] Passed 4 tests
An overview of server-side resources used by Plainview Protect Passwords
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 41.10 ▼1.20 |
Dashboard /wp-admin | 3.70 ▲0.40 | 46.55 ▼0.75 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 50.99 ▲5.28 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.03 ▼0.58 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 34.85 ▲0.02 |
Protect Passwords /wp-admin/options-general.php?page=pv_protect_passwords | 4.57 | 38.48 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 218 new files
Database: no new tables, 9 new options
New WordPress options |
---|
Protect_Passwords_protected_users |
Protect_Passwords_protected_roles |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Protect_Passwords_excepted_users |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Plainview Protect Passwords
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.22 ▼1.24 | 1.88 ▲0.00 | 39.99 ▼7.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.03 | 95.15 ▼22.70 | 37.02 ▼7.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.14 | 33.96 ▼1.81 | 32.45 ▼6.35 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.64 ▼5.67 | 687.08 ▲7.46 | 48.39 ▼20.15 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.22 ▲0.05 | 94.93 ▼2.30 | 41.12 ▼2.74 |
Protect Passwords /wp-admin/options-general.php?page=pv_protect_passwords | 918 | 2.02 | 22.68 | 27.03 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- Protect_Passwords_protected_roles
- widget_theysaidso_widget
- widget_recent-posts
- Protect_Passwords_protected_users
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- Protect_Passwords_excepted_users
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 136× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\tests\\TestCase' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/pagination/tests/PaginationTest.php:3
- > PHP Fatal error
Trait 'plainview\\sdk_propas\\wordpress\\object_stores\\Store' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/object_stores/Post.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\form2\\tests\\TestCase' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/form2/tests/MarkupTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\form2\\inputs\\inputfieldset' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/radios.php:11
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\form2\\inputs\umber' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/range.php:11
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\wordpress\\actions\\action' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/plugin_pack/actions/get_plugin_classes.php:9
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\collections\\collection' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/tree/orphans.php:11
- > PHP Fatal error
Trait 'plainview\\sdk_propas\\traits\\method_chaining' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/table/top/bulkactions.php on line 15
- > PHP Fatal error
Trait 'plainview\\sdk_propas\\traits\\sort_order' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/wordpress/row_actions/Action.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'plainview\\sdk_propas\\form2\\inputs\\date' not found in wp-content/plugins/plainview-protect-passwords/src/sdk/form2/inputs/datetime.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #2 in plainview-protect-passwords/assets to your readme.txt
plainview-protect-passwords/Protect_Passwords.php 92% from 13 tests
The primary PHP file in "Plainview Protect Passwords" version 1.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plainview-protect-passwords.php" instead of "Protect_Passwords.php")
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 detected10,675 lines of code in 209 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 195 | 2,607 | 6,457 | 10,108 |
JavaScript | 2 | 58 | 66 | 212 |
Markdown | 3 | 43 | 0 | 104 |
PO File | 1 | 40 | 43 | 98 |
Bourne Shell | 4 | 17 | 9 | 62 |
JSON | 3 | 0 | 0 | 49 |
XML | 1 | 0 | 0 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 0 | |
Traits | 47 | |
Classes | 140 | |
▷ Abstract classes | 3 | 2.14% |
▷ Concrete classes | 137 | 97.86% |
▷ Final classes | 0 | 0.00% |
Methods | 1,048 | |
▷ Static methods | 80 | 7.63% |
▷ Public methods | 1,041 | 99.33% |
▷ Protected methods | 2 | 0.19% |
▷ Private methods | 5 | 0.48% |
Functions | 18 | |
▷ Named functions | 10 | 55.56% |
▷ Anonymous functions | 8 | 44.44% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin