78% modular-connector

Code Review | Modular DS: Manage all your websites from a single dashboard

WordPress plugin Modular DS: Manage all your websites from a single dashboard scored78%from 54 tests.

About plugin

  • Plugin page: modular-connector
  • Plugin version: 0.50.5
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4
  • WordPress version: 6.3.1
  • First release: Feb 17, 2023
  • Latest release: Nov 15, 2023
  • Number of updates: 37
  • Update frequency: every 7.9 days
  • Top authors: modulards (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active /18,629 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.73MB] [CPU: ▲29.68ms] Passed 4 tests

An overview of server-side resources used by Modular DS: Manage all your websites from a single dashboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.20 ▲4.7363.79 ▲24.99
Dashboard /wp-admin8.03 ▲4.7381.31 ▲30.04
Posts /wp-admin/edit.php8.15 ▲4.7979.87 ▲35.69
Add New Post /wp-admin/post-new.php10.62 ▲4.72122.91 ▲28.00
Media Library /wp-admin/upload.php7.96 ▲4.7266.68 ▲36.55
Modular - Connection manager /wp-admin/tools.php?page=modular-connector9.6167.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Modular DS: Manage all your websites from a single dashboard
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲714.22 ▼0.131.65 ▼0.2840.50 ▼3.26
Dashboard /wp-admin2,202 ▲225.60 ▼0.0695.89 ▼4.8443.71 ▼7.13
Posts /wp-admin/edit.php2,107 ▲41.94 ▼0.0739.89 ▲4.2639.77 ▲3.41
Add New Post /wp-admin/post-new.php1,534 ▼022.93 ▲0.21706.67 ▲63.5254.24 ▼14.41
Media Library /wp-admin/upload.php1,404 ▲74.18 ▼0.0396.87 ▼2.2641.92 ▼3.35
Modular - Connection manager /wp-admin/tools.php?page=modular-connector9081.9624.0430.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 15× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/minimal.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/503.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/404.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/419.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/429.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/403.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/symfony/error-handler/Resources/views/trace.html.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/illuminate/Foundation/Exceptions/views/500.blade.php
    • > /wp-content/plugins/modular-connector/src/resources/views/settings.blade.php
    • > /wp-content/plugins/modular-connector/vendor_prefixed/symfony/http-kernel/Resources/welcome.html.php
  • 1524× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: expand in wp-content/plugins/modular-connector/vendor_prefixed/symfony/error-handler/Resources/views/traces.html.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Modular\\ConnectorDependencies\\Illuminate\\Database\\Connection' not found in wp-content/plugins/modular-connector/vendor_prefixed/illuminate/database/PostgresConnection.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Modular\\ConnectorDependencies\\Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/modular-connector/vendor_prefixed/symfony/translation/Exception/ProviderExceptionInterface.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Modular\\ConnectorDependencies\\Monolog\\Handler\\Handler' not found in wp-content/plugins/modular-connector/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Modular\\ConnectorDependencies\\Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/modular-connector/vendor_prefixed/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Modular\\ConnectorDependencies\\Symfony\\Component\\Routing\\Matcher\\UrlMatcher' not found in wp-content/plugins/modular-connector/vendor_prefixed/symfony/routing/Matcher/TraceableUrlMatcher.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Modular\\ConnectorDependencies\\Illuminate\\Support\\AggregateServiceProvider' not found in wp-content/plugins/modular-connector/vendor_prefixed/ares/framework/src/Setup/RegisterWordpressAsPluginProvider.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Modular\\ConnectorDependencies\\Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/modular-connector/vendor_prefixed/symfony/http-kernel/DependencyInjection/RegisterLocaleAwareServicesPass.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'Modular\\ConnectorDependencies\\Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/modular-connector/vendor_prefixed/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Modular\\ConnectorDependencies\\Illuminate\\Queue\\Jobs\\Job' not found in wp-content/plugins/modular-connector/vendor_prefixed/illuminate/queue/Jobs/SyncJob.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: performance, manage multiple sites, update, backup, security...

modular-connector/init.php 85% from 13 tests

Analyzing the main PHP file in "Modular DS: Manage all your websites from a single dashboard" version 0.50.5
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("modular-connector.php" instead of "init.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 277 characters long)

Code Analysis 97% from 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
No dangerous file extensions were detected177,387 lines of code in 3,356 files:
LanguageFilesBlank linesComment linesLines of code
PHP3,3168,076139,789166,791
JSON5006,063
XSD4113482,976
Blade111485598
CSS4285481
JavaScript23615244
PO File1252576
reStructuredText1747874
Bourne Again Shell1101460
XML10015
SVG9009
HTML1010

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 334)
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.12
▷ Minimum class complexity1.00
▷ Maximum class complexity365.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity334.00
Code structure
Namespaces407
Interfaces352
Traits148
Classes1,918
▷ Abstract classes1206.26%
▷ Concrete classes1,79893.74%
▷ Final classes27715.41%
Methods17,012
▷ Static methods1,6779.86%
▷ Public methods13,19177.54%
▷ Protected methods2,92417.19%
▷ Private methods8975.27%
Functions1,902
▷ Named functions36519.19%
▷ Anonymous functions1,53780.81%
Constants1,106
▷ Global constants958.59%
▷ Class constants1,01191.41%
▷ Public constants85584.57%

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 images were found in this plugin