84% multisite-user-sync

Code Review | Multisite User Sync

WordPress plugin Multisite User Sync scored84%from 54 tests.

About plugin

  • Plugin page: multisite-user-sync
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: Aug 24, 2018
  • Number of updates: 16
  • Update frequency: every 72.4 days
  • Top authors: shamim51 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.80ms] Passed 4 tests

This is a short check of server-side resources used by Multisite User Sync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.78 ▼3.24
Dashboard /wp-admin3.32 ▲0.0152.73 ▼0.20
Posts /wp-admin/edit.php3.37 ▲0.0147.91 ▼6.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.92 ▼20.86
Media Library /wp-admin/upload.php3.25 ▲0.0137.38 ▲0.24

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multisite User Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.53 ▲0.181.71 ▼0.1543.83 ▲0.23
Dashboard /wp-admin2,198 ▲185.61 ▲0.0191.39 ▲2.4943.27 ▲1.81
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1735.69 ▼6.2032.47 ▼6.73
Add New Post /wp-admin/post-new.php1,526 ▼222.98 ▼0.14674.06 ▲44.0150.22 ▲1.92
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.03100.96 ▼14.2642.09 ▼3.29

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

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

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multisite-user-sync/multisite-user-sync.php:12

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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Activate) image required
The official readme.txt might help

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

The entry point to "Multisite User Sync" version 1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 251 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2113054

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected