68% msync

Code Review | MSync

WordPress plugin MSync scored68%from 54 tests.

About plugin

  • Plugin page: msync
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Jan 29, 2016
  • Number of updates: 14
  • Update frequency: every 18.8 days
  • Top authors: magiclogix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,158 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.75ms] Passed 4 tests

A check of server-side resources used by MSync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2147.51 ▲4.03
Dashboard /wp-admin3.58 ▲0.2752.99 ▼3.27
Posts /wp-admin/edit.php3.63 ▲0.2754.28 ▲0.88
Add New Post /wp-admin/post-new.php6.12 ▲0.2393.29 ▼2.11
Media Library /wp-admin/upload.php3.44 ▲0.2137.93 ▲1.49
mSync Settings /wp-admin/options-general.php?page=msync_settings3.4137.74
Add New /wp-admin/admin.php?page=builder3.4339.88
About /wp-admin/admin.php?page=about3.4134.55
All Forms /wp-admin/admin.php?page=msync3.4334.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_msync_field_list
wp_msync_form_fields
wp_msync_forms
New WordPress options
widget_theysaidso_widget
widget_msync_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

MSync: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16513.66 ▼0.668.61 ▲6.9145.78 ▲5.66
Dashboard /wp-admin2,249 ▲725.77 ▲0.1089.73 ▼1.2738.34 ▼4.43
Posts /wp-admin/edit.php2,140 ▲402.30 ▲0.3061.38 ▲18.9037.21 ▼3.89
Add New Post /wp-admin/post-new.php6,284 ▲4,75319.16 ▼4.01906.09 ▲275.0639.89 ▼8.32
Media Library /wp-admin/upload.php1,448 ▲514.26 ▲0.05102.37 ▼6.2141.65 ▼5.28
mSync Settings /wp-admin/options-general.php?page=msync_settings9631.8724.9627.31
Add New /wp-admin/admin.php?page=builder1,0421.9132.2329.87
About /wp-admin/admin.php?page=about8221.8625.0525.80
All Forms /wp-admin/admin.php?page=msync1,0041.8725.2823.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_msync_form_fields
    • wp_msync_forms
    • wp_msync_field_list
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_msync_widget
    • widget_recent-comments

Smoke tests 50% 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 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
Please fix the following items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/msync/admin/partials/shortcode-form.php
    • > /wp-content/plugins/msync/public/partials/form.php
    • > /wp-content/plugins/msync/admin/partials/field-instance.php
    • > /wp-content/plugins/msync/public/partials/msync-public-display.php
    • > /wp-content/plugins/msync/admin/partials/field-settings.php
    • > /wp-content/plugins/msync/admin/partials/msync-about.php
  • 109× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to get property 'input_type' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 24
    • > PHP Notice
      Trying to get property 'validation' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 42
    • > PHP Notice
      Trying to get property 'input_type' of non-object in wp-content/plugins/msync/admin/partials/field-settings.php on line 24
    • > PHP Notice
      Undefined variable: field_instance in wp-content/plugins/msync/admin/partials/field-instance.php on line 25
    • > PHP Notice
      Undefined variable: form_data in wp-content/plugins/msync/public/partials/form.php on line 3
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/msync/admin/partials/field-settings.php on line 77
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 19
    • > PHP Notice
      Trying to get property 'display_name' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 23
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 15
    • > PHP Notice
      Trying to get property 'id' of non-object in wp-content/plugins/msync/admin/partials/field-instance.php on line 22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: marketing automation, marketo, integration, tracking, analytics...

msync/mync.php 92% from 13 tests

"MSync" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("msync.php" instead of "mync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,021 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP232346711,653
CSS2741219
JavaScript3146149

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.40
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods95
▷ Static methods1717.89%
▷ Public methods8387.37%
▷ Protected methods00.00%
▷ Private methods1212.63%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected