Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.17ms] Passed 4 tests
This is a short check of server-side resources used by Master Password
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 46.18 ▲7.26 |
Dashboard /wp-admin | 3.50 ▲0.19 | 55.77 ▼12.49 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.60 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.26 ▲7.34 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.49 ▼0.18 |
Master Password /wp-admin/options-general.php?page=master-password | 3.33 | 38.50 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
mapa_settings |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Master Password
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 14.75 ▲0.40 | 1.69 ▼0.16 | 45.32 ▼0.78 |
Dashboard /wp-admin | 2,353 ▲173 | 6.39 ▲0.79 | 113.42 ▲21.40 | 38.63 ▼4.64 |
Posts /wp-admin/edit.php | 2,278 ▲181 | 3.50 ▲1.47 | 50.14 ▲10.69 | 34.17 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.10 ▼0.05 | 597.90 ▼58.49 | 34.21 ▼17.80 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.32 ▲0.13 | 80.97 ▼18.16 | 42.00 ▼0.63 |
Master Password /wp-admin/options-general.php?page=master-password | 1,069 | 3.43 | 53.33 | 25.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- mapa_settings
- theysaidso_admin_options
- 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
Everything seems fine, however 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'MAPA_INCLUDES_PATHclass.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/master-password/includes/admin_setting.php on line 7
- > PHP Warning
Use of undefined constant MAPA_INCLUDES_PATH - assumed 'MAPA_INCLUDES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/master-password/includes/admin_setting.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/master-password/master-password.php:29
- > PHP Warning
require_once(MAPA_INCLUDES_PATHclass.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/master-password/includes/admin_setting.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: admin login, use admin password, master, universal login, use administrator password...
master-password/master-password.php Passed 13 tests
"Master Password" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
81 characters long description:
Allow to set custom master password by which you can login into any user account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin549 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 159 | 234 | 494 |
PO File | 1 | 8 | 9 | 34 |
JavaScript | 1 | 6 | 1 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 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 | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin