77% syncee-global-dropshipping

Code Review | Syncee - Global Dropshipping

WordPress plugin Syncee - Global Dropshipping scored77%from 54 tests.

About plugin

  • Plugin page: syncee-global-dro...
  • Plugin version: 1.0.17
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Aug 29, 2023
  • Number of updates: 31
  • Update frequency: every 27.7 days
  • Top authors: akosglys (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

700+ active /14,970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.20ms] Passed 4 tests

Server-side resources used by Syncee - Global Dropshipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.15 ▼6.04
Dashboard /wp-admin3.36 ▲0.0547.22 ▼4.21
Posts /wp-admin/edit.php3.47 ▲0.1149.38 ▼1.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.67 ▼5.37
Media Library /wp-admin/upload.php3.28 ▲0.0534.58 ▲3.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Syncee - Global Dropshipping
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲8413.63 ▼0.591.60 ▼0.5743.08 ▼7.11
Dashboard /wp-admin2,250 ▲594.88 ▼1.00104.49 ▼11.9039.83 ▼2.98
Posts /wp-admin/edit.php2,137 ▲452.01 ▼0.0441.24 ▲6.7034.82 ▼0.52
Add New Post /wp-admin/post-new.php1,524 ▲1017.66 ▲0.17657.65 ▼28.4652.74 ▼1.11
Media Library /wp-admin/upload.php1,432 ▲414.28 ▲0.0394.66 ▼6.1041.38 ▼1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/syncee-global-dropshipping/View/index.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/syncee-global-dropshipping/Syncee.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syncee-global-dropshipping/includes/RestForSyncee.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

syncee-global-dropshipping/plugin.php 85% from 13 tests

The main PHP file in "Syncee - Global Dropshipping" ver. 1.0.17 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 178 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("syncee-global-dropshipping.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected804 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP513595533
JavaScript27012212
CSS28848
SVG11011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.67
▷ Minimum class complexity8.00
▷ Maximum class complexity12.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods926.47%
▷ Public methods3191.18%
▷ Protected methods00.00%
▷ Private methods38.82%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 1.37MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png633.20KB248.29KB▼ 60.79%
img/syncee_18x18.png0.61KB0.58KB▼ 6.05%
img/syncee_logo.png2.31KB1.95KB▼ 15.53%
(invalid) assets/screenshot-4.png0.00KB0.00KB0.00%
img/syncee_icon_blue.png0.65KB0.52KB▼ 19.34%