84% master-password

Code Review | Master Password

WordPress plugin Master Password scored84%from 54 tests.

About plugin

  • Plugin page: master-password
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7.1
  • WordPress version: 6.3.1
  • First release: Nov 29, 2016
  • Latest release: Mar 15, 2017
  • Number of updates: 24
  • Update frequency: every 4.5 days
  • Top authors: pmbaldha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,804 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.18 ▲7.26
Dashboard /wp-admin3.50 ▲0.1955.77 ▼12.49
Posts /wp-admin/edit.php3.55 ▲0.1952.60 ▲0.72
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.26 ▲7.34
Media Library /wp-admin/upload.php3.33 ▲0.1036.49 ▼0.18
Master Password /wp-admin/options-general.php?page=master-password3.3338.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18614.75 ▲0.401.69 ▼0.1645.32 ▼0.78
Dashboard /wp-admin2,353 ▲1736.39 ▲0.79113.42 ▲21.4038.63 ▼4.64
Posts /wp-admin/edit.php2,278 ▲1813.50 ▲1.4750.14 ▲10.6934.17 ▼3.66
Add New Post /wp-admin/post-new.php1,541 ▲1523.10 ▼0.05597.90 ▼58.4934.21 ▼17.80
Media Library /wp-admin/upload.php1,421 ▲244.32 ▲0.1380.97 ▼18.1642.00 ▼0.63
Master Password /wp-admin/options-general.php?page=master-password1,0693.4353.3325.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP3159234494
PO File18934
JavaScript16121

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 code0.40
Average class complexity28.50
▷ Minimum class complexity8.00
▷ Maximum class complexity49.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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