84% multisite-enhancements

Code Review | Multisite Enhancements

WordPress plugin Multisite Enhancements scored84%from 54 tests.

About plugin

  • Plugin page: multisite-enhance...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: May 26, 2021
  • Number of updates: 132
  • Update frequency: every 21.0 days
  • Top authors: Bueltge (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

70+ active /131,795 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.00MB] [CPU: ▼5.28ms] Passed 4 tests

An overview of server-side resources used by Multisite Enhancements
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.45 ▼3.26
Dashboard /wp-admin3.31 ▲0.0046.19 ▼0.88
Posts /wp-admin/edit.php3.36 ▲0.0049.77 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.07 ▼14.72
Media Library /wp-admin/upload.php3.23 ▲0.0034.10 ▲0.17

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Multisite Enhancements: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.47 ▲0.101.63 ▼0.2442.62 ▼2.09
Dashboard /wp-admin2,203 ▲154.85 ▼0.05107.41 ▲2.6340.94 ▼5.70
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0339.82 ▼2.3937.02 ▲2.27
Add New Post /wp-admin/post-new.php1,533 ▼923.14 ▲4.86581.33 ▼20.2463.78 ▲8.35
Media Library /wp-admin/upload.php1,388 ▲34.14 ▼0.0598.11 ▼11.1942.43 ▼1.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-plugin-list.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-theme-list.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-site-status-labels.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-blog-id.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-change-footer-text.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-core.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-multisite-add-new-plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Bueltge\\Admin_Bar_Tweaks\\add_action() in wp-content/plugins/multisite-enhancements/src/class-admin-bar-tweaks.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-enhancements/src/class-add-admin-favicon.php:25

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: multisite, administration, network, admin bar

multisite-enhancements/multisite-enhancements.php 92% from 13 tests

"Multisite Enhancements" version 1.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,202 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP162981,0861,167
JavaScript22319
CSS24016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.29
▷ Minimum class complexity3.00
▷ Maximum class complexity28.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods81
▷ Static methods1619.75%
▷ Public methods7997.53%
▷ Protected methods11.23%
▷ Private methods11.23%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected