84% qsynced

Code Review | QSynced

WordPress plugin QSynced scored84%from 54 tests.

About plugin

  • Plugin page: qsynced
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2022
  • Latest release: Mar 29, 2022
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: alexcd2000 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,391 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.49ms] 75% from 4 tests

This is a short check of server-side resources used by QSynced
The following require your attention
  • CPU: Try to keep total CPU usage under 500.00ms (currently 2,231.58ms on /wp-admin/admin.php?page=qsynced)
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.05 ▼2.54
Dashboard /wp-admin3.37 ▲0.0347.41 ▼17.14
Posts /wp-admin/edit.php3.42 ▲0.0747.22 ▲4.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.03 ▼18.41
Media Library /wp-admin/upload.php3.29 ▲0.0735.65 ▲0.15
E-mails /wp-admin/admin.php?page=qsynced-emails3.332,711.96
Settings /wp-admin/admin.php?page=qsynced-settings3.282,338.29
QSynced /wp-admin/admin.php?page=qsynced3.282,231.58

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables
wp_qsynced
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for QSynced
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10113.15 ▼1.221.71 ▼0.0842.90 ▼1.59
Dashboard /wp-admin2,239 ▲514.90 ▼0.95102.15 ▼6.2937.60 ▼7.47
Posts /wp-admin/edit.php2,119 ▲272.06 ▲0.0140.40 ▲0.1434.45 ▼0.16
Add New Post /wp-admin/post-new.php1,549 ▲723.12 ▲4.94647.52 ▼6.8951.38 ▼0.00
Media Library /wp-admin/upload.php1,418 ▲394.19 ▲0.0195.22 ▼4.3443.26 ▲1.13
E-mails /wp-admin/admin.php?page=qsynced-emails7882.0423.6827.36
Settings /wp-admin/admin.php?page=qsynced-settings8131.7123.9031.59
QSynced /wp-admin/admin.php?page=qsynced8491.6824.2033.04

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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 items
  • 8× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/qsynced/qsynced.php
    • > /wp-content/plugins/qsynced/settings.php
    • > /wp-content/plugins/qsynced/mail-template.php
    • > /wp-content/plugins/qsynced/index.php
    • > /wp-content/plugins/qsynced/mails.php
    • > /wp-content/plugins/qsynced/home.php
    • > /wp-content/plugins/qsynced/uninstall.php
    • > /wp-content/plugins/qsynced/css.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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: stock management, woocommerce addon, backorder

qsynced/qsynced.php Passed 13 tests

The main PHP script in "QSynced" version 1.2.2 is automatically included on every request by WordPress
93 characters long description:
Qsynced restores confidence in your consumers by offering security in the products they want.

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
Everything looks great! No dangerous files found in this plugin968 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP8105108968

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected