77% syncee-for-suppliers

Code Review | Syncee for Suppliers

WordPress plugin Syncee for Suppliers scored77%from 54 tests.

About plugin

  • Plugin page: syncee-for-suppliers
  • Plugin version: 1.0.17
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Aug 29, 2023
  • Number of updates: 19
  • Update frequency: every 45.0 days
  • Top authors: akosglys (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /2,837 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 gracefully, with no errors

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

This is a short check of server-side resources used by Syncee for Suppliers
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.27 ▼3.94
Dashboard /wp-admin3.35 ▲0.0147.27 ▼16.68
Posts /wp-admin/edit.php3.47 ▲0.1150.73 ▲4.04
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.57 ▼14.43
Media Library /wp-admin/upload.php3.28 ▲0.0532.20 ▼2.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Syncee for Suppliers
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲21213.91 ▼0.489.89 ▲8.2832.17 ▼6.41
Dashboard /wp-admin2,230 ▲455.06 ▲0.16103.77 ▲0.7040.81 ▼2.64
Posts /wp-admin/edit.php2,110 ▲212.11 ▲0.0740.60 ▼0.7742.25 ▲7.12
Add New Post /wp-admin/post-new.php1,376 ▼16117.45 ▼5.37535.78 ▼59.2840.77 ▼18.45
Media Library /wp-admin/upload.php1,406 ▲214.36 ▲0.17113.62 ▲16.5743.81 ▲1.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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)
Even though no errors were found, 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/syncee-for-suppliers/View/index.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/syncee-for-suppliers/SynceeSupplier.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syncee-for-suppliers/includes/RestForSynceeSupplier.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

syncee-for-suppliers/plugin.php 85% from 13 tests

The principal PHP file in "Syncee for Suppliers" v. 1.0.17 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("syncee-for-suppliers.php" instead of "plugin.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
Good job! No executable or dangerous file extensions detected757 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP511192534
JavaScript26612211
SVG11011
CSS1061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity1.64
▷ 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 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.34MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png182.77KB77.81KB▼ 57.43%
(invalid) assets/screenshot-2.png0.00KB0.00KB0.00%
img/syncee_icon_blue.png0.65KB0.52KB▼ 19.34%
img/syncee_logo.png2.31KB1.95KB▼ 15.53%
img/syncee_minimal_logo.png4.82KB3.98KB▼ 17.40%