78% splash-connector

Code Review | Splash Sync

WordPress plugin Splash Sync scored78%from 54 tests.

About plugin

  • Plugin page: splash-connector
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Aug 3, 2023
  • Number of updates: 84
  • Update frequency: every 26.6 days
  • Top authors: nanard33 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,275 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.28MB] [CPU: ▲3.34ms] Passed 4 tests

This is a short check of server-side resources used by Splash Sync
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2844.12 ▲3.04
Dashboard /wp-admin3.61 ▲0.3151.04 ▲0.76
Posts /wp-admin/edit.php3.66 ▲0.3051.00 ▲3.39
Add New Post /wp-admin/post-new.php6.21 ▲0.3295.72 ▲6.15
Media Library /wp-admin/upload.php3.47 ▲0.2442.05 ▲8.20
Splash Sync /wp-admin/options-general.php?page=splash-wordpress-plugin_settings3.9146.85

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 386 new files
Database: no new tables, 7 new options
New WordPress options
splash-wordpress-plugin_version
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Splash Sync
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.58 ▼0.721.72 ▲0.1045.28 ▲3.87
Dashboard /wp-admin2,219 ▲164.84 ▼0.98108.36 ▲6.4339.42 ▲0.09
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0239.79 ▲4.8335.02 ▼3.59
Add New Post /wp-admin/post-new.php1,552 ▲723.19 ▲0.07674.28 ▲19.0361.48 ▲8.87
Media Library /wp-admin/upload.php1,404 ▲74.22 ▲0.0297.68 ▼9.0344.08 ▼2.26
Splash Sync /wp-admin/options-general.php?page=splash-wordpress-plugin_settings9712.0725.2229.77

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 14 options
    • wpm_use_redirect
    • wpm_uninstall_translations
    • widget_recent-comments
    • widget_recent-posts
    • woocommerce_currency
    • db_upgraded
    • wpm_site_language
    • splash-wordpress-plugin_version
    • widget_theysaidso_widget
    • wpm_show_untranslated_strings
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/splash-connector/vendor/splash/phpcore/soap.php
  • 104× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Splash\\Tests\\Tools\\Fields\\OoVarchar' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Tests/Tools/Fields/OoLang.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Splash\\Models\\AbstractObject' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Templates/Local/Objects/Dummy.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Splash\\Tests\\Tools\\ObjectsCase' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Tests/WsObjects/O03ListTest.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Splash\\Templates\\Widgets\\SelfTestTemplate' not found in wp-content/plugins/splash-connector/src/Widgets/SelfTest.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Splash\\Router\\RouterInterface' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Router/Admin.php:26
    • > PHP Warning
      include_once(vendor/badpixxel/php-sdk/phpcs/headers/splashsync.php): failed to open stream: No such file or directory in wp-content/plugins/splash-connector/vendor/splash/phpcore/Resources/phpcs/cs.splashsync.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Splash\\Tests\\Tools\\AbstractBaseCase' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Tests/WsAdmin/A06InfosTest.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Splash\\Models\\LocalClassInterface' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Templates/Local/Local.php:25
    • > PHP Fatal error
      Trait 'Splash\\Models\\Objects\\FieldsFactoryTrait' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Models/Objects/IntelParserTrait.php on line 25
    • > PHP Fatal error
      Uncaught Error: Interface 'Splash\\Tests\\Tools\\Fields\\FieldInterface' not found in wp-content/plugins/splash-connector/vendor/splash/phpcore/Tests/Tools/Fields/OoImage.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: prestashop, woocommerce, erp, e-commerce, wordpress...

splash-connector/splash.php 77% from 13 tests

Analyzing the main PHP file in "Splash Sync" version 2.0.6
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("6.1" instead of "6.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("splash-connector.php" instead of "splash.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin28,511 lines of code in 316 files:
LanguageFilesBlank linesComment linesLines of code
PHP2614,95625,46726,241
INI17169488813
YAML974264669
Markdown151750319
XML52740176
JSON4140160
CSS15060
Bourne Shell2135737
JavaScript12019
HTML10017

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity18.18
▷ Minimum class complexity1.00
▷ Maximum class complexity391.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces48
Interfaces13
Traits100
Classes143
▷ Abstract classes64.20%
▷ Concrete classes13795.80%
▷ Final classes10.73%
Methods1,487
▷ Static methods45030.26%
▷ Public methods1,04570.28%
▷ Protected methods20113.52%
▷ Private methods24116.21%
Functions14
▷ Named functions1071.43%
▷ Anonymous functions428.57%
Constants240
▷ Global constants9539.58%
▷ Class constants14560.42%
▷ Public constants145100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/Resources/docs/assets/img/screenshot_5.png39.48KB13.26KB▼ 66.42%
src/Resources/docs/assets/img/screenshot_1.png65.10KB23.81KB▼ 63.43%
src/Resources/docs/assets/img/screenshot_4.png47.04KB17.42KB▼ 62.98%
src/Resources/docs/assets/img/screenshot_3.png55.11KB19.88KB▼ 63.92%
src/Resources/docs/assets/img/screenshot_2.png53.52KB19.70KB▼ 63.20%