84% data-sync-q-by-wbsync

Code Review | Data Sync Q by Wbsync

WordPress plugin Data Sync Q by Wbsync scored84%from 54 tests.

About plugin

  • Plugin page: data-sync-q-by-wb...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.3
  • WordPress version: 6.3.1
  • First release: May 21, 2020
  • Latest release: May 24, 2020
  • Number of updates: 13
  • Update frequency: every 0.3 days
  • Top authors: wbsync (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /738 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.25ms] Passed 4 tests

A check of server-side resources used by Data Sync Q by Wbsync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.55 ▼5.93
Dashboard /wp-admin3.32 ▲0.0244.10 ▼5.28
Posts /wp-admin/edit.php3.37 ▲0.0143.68 ▼7.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.49 ▼10.58
Media Library /wp-admin/upload.php3.24 ▲0.0133.43 ▼1.10

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Data Sync Q by Wbsync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15513.66 ▼0.744.68 ▲2.7428.51 ▼18.05
Dashboard /wp-admin2,210 ▲555.88 ▲0.18102.79 ▲2.6344.54 ▲3.77
Posts /wp-admin/edit.php2,093 ▲72.03 ▲0.0339.92 ▲2.7541.65 ▲3.92
Add New Post /wp-admin/post-new.php1,527 ▼618.65 ▼4.36617.20 ▼37.3857.99 ▼0.91
Media Library /wp-admin/upload.php1,389 ▼24.24 ▲0.0197.38 ▼0.4844.93 ▲2.12

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/data-sync-q-by-wbsync/admin/partials/data-sync-q-woocommerce-admin-display.php
    • > /wp-content/plugins/data-sync-q-by-wbsync/public/partials/data-sync-q-woocommerce-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
3 plugin tags: woocommerce, quickbooks, data sync

data-sync-q-by-wbsync/data-sync-q-woocommerce.php 92% from 13 tests

The main file in "Data Sync Q by Wbsync" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("data-sync-q-by-wbsync.php" instead of "data-sync-q-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected982 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12443558897
CSS2111978
JavaScript24546
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.57
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
There are no PNG files in this plugin