84% allow-multiple-accounts

Code Review | Allow Multiple Accounts

WordPress plugin Allow Multiple Accounts scored84%from 54 tests.

About plugin

  • Plugin page: allow-multiple-ac...
  • Plugin version: 3.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Jun 23, 2009
  • Latest release: Jul 15, 2015
  • Number of updates: 17
  • Update frequency: every 131.7 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

10,000+ active /73,023 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.20ms] Passed 4 tests

Analyzing server-side resources used by Allow Multiple Accounts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.88 ▼2.45
Dashboard /wp-admin3.35 ▲0.0549.45 ▼3.41
Posts /wp-admin/edit.php3.47 ▲0.1150.20 ▼0.33
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.59 ▼24.54
Media Library /wp-admin/upload.php3.28 ▲0.0535.02 ▼2.41
Multiple Accounts /wp-admin/users.php?page=allow-multiple-accounts/allow-multiple-accounts.php3.2633.58

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
c2c_allow_multiple_accounts
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Allow Multiple Accounts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.021.76 ▼0.3744.11 ▲0.79
Dashboard /wp-admin2,196 ▲185.50 ▼0.1584.32 ▼31.6139.80 ▼3.37
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0335.46 ▼0.8832.35 ▼2.64
Add New Post /wp-admin/post-new.php1,531 ▼422.95 ▲4.95693.00 ▲46.6952.38 ▼16.47
Media Library /wp-admin/upload.php1,407 ▲74.29 ▲0.1898.24 ▼1.5143.70 ▲0.31
Multiple Accounts /wp-admin/users.php?page=allow-multiple-accounts/allow-multiple-accounts.php9332.0227.3834.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please take a closer look at the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/allow-multiple-accounts/tests/bootstrap.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/allow-multiple-accounts/tests/bootstrap.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/allow-multiple-accounts/tests/test-allow-multiple-accounts.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

allow-multiple-accounts/allow-multiple-accounts.php Passed 13 tests

This is the main PHP file of "Allow Multiple Accounts" version 3.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Allow multiple user accounts to be created, registered, and updated having the same email address.

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
Success! There were no dangerous files found in this plugin1,201 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42677151,165
Bourne Shell17322
XML10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity67.33
▷ Minimum class complexity3.00
▷ Maximum class complexity126.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods94
▷ Static methods33.19%
▷ Public methods8085.11%
▷ Protected methods1313.83%
▷ Private methods11.06%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
c2c_minilogo.png3.49KB1.91KB▼ 45.43%