90% members-multisite-user-roles-sync

Code Review | Members Multisite User Roles Sync

WordPress plugin Members Multisite User Roles Sync scored90%from 54 tests.

About plugin

  • Plugin page: members-multisite...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Feb 11, 2016
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: jeffreyvr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,360 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.45ms] Passed 4 tests

An overview of server-side resources used by Members Multisite User Roles Sync
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.23 ▲1.26
Dashboard /wp-admin3.31 ▲0.0045.71 ▼4.30
Posts /wp-admin/edit.php3.36 ▲0.0044.54 ▼4.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.85 ▼1.84
Media Library /wp-admin/upload.php3.23 ▲0.0036.39 ▲2.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Members Multisite User Roles Sync
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.78 ▲0.191.82 ▲0.0845.19 ▼1.62
Dashboard /wp-admin2,206 ▲154.84 ▼0.04114.07 ▲10.3842.34 ▲2.23
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0033.40 ▼7.2036.09 ▼2.36
Add New Post /wp-admin/post-new.php1,514 ▼017.52 ▼0.17600.10 ▼23.6452.30 ▲0.80
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.15100.46 ▲0.4344.83 ▲2.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: members, roles, synchronize, multisite

members-multisite-user-roles-sync/members-multisite-user-roles-sync.php 92% from 13 tests

The entry point to "Members Multisite User Roles Sync" version 0.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1255479

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin