83% multisite-shared-sidebar

Code Review | Multisite Shared Sidebar

WordPress plugin Multisite Shared Sidebar scored83%from 54 tests.

About plugin

  • Plugin page: multisite-shared-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2014
  • Latest release: Mar 6, 2019
  • Number of updates: 23
  • Update frequency: every 67.6 days
  • Top authors: Mikio Ishitani (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

30+ active /4,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Multisite Shared Sidebar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.32 ▲1.27
Dashboard /wp-admin3.31 ▲0.0043.45 ▼4.12
Posts /wp-admin/edit.php3.36 ▲0.0046.22 ▼5.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.69 ▼24.09
Media Library /wp-admin/upload.php3.23 ▲0.0032.11 ▲0.03

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Multisite Shared Sidebar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.181.82 ▲0.0442.96 ▲1.71
Dashboard /wp-admin2,200 ▲125.83 ▼0.06101.59 ▼9.2638.75 ▼4.37
Posts /wp-admin/edit.php2,086 ▼01.99 ▼0.0735.70 ▼4.4933.31 ▼1.75
Add New Post /wp-admin/post-new.php1,514 ▼1417.39 ▼0.96695.64 ▲77.6563.35 ▲14.59
Media Library /wp-admin/upload.php1,388 ▼04.42 ▲0.1893.40 ▼0.5542.17 ▼0.81

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-shared-sidebar/multisite-shared-sidebar.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

multisite-shared-sidebar/multisite-shared-sidebar.php 92% from 13 tests

The entry point to "Multisite Shared Sidebar" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 335 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin388 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP275109358
PO File171030

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants4
▷ Global constants4100.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
No PNG files were detected