84% sinalite-for-woocommerce

Code Review | Printbest for WooCommerce

WordPress plugin Printbest for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: sinalite-for-wooc...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.3-6.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2020
  • Latest release: Oct 26, 2022
  • Number of updates: 11
  • Update frequency: every 63.6 days
  • Top authors: sinalite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 1,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.34ms] Passed 4 tests

This is a short check of server-side resources used by Printbest for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.78 ▼12.89
Dashboard /wp-admin3.31 ▲0.0147.41 ▲2.64
Posts /wp-admin/edit.php3.36 ▲0.0044.73 ▼3.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.61 ▼9.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.65 ▼0.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Printbest for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.66 ▼0.771.72 ▼0.3140.09 ▼5.45
Dashboard /wp-admin2,209 ▲184.85 ▼0.0399.91 ▼17.0739.81 ▼8.29
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0232.53 ▼3.1433.89 ▼1.76
Add New Post /wp-admin/post-new.php1,539 ▲518.43 ▼4.71591.40 ▼18.6052.34 ▼12.64
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0199.15 ▼4.1843.68 ▼1.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/sinalite-for-woocommerce/sinalite.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/sinalite-for-woocommerce/includes/sinalite-shipping-method.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: printbest, woocommerce, sinalite, printing, dropshipping...

sinalite-for-woocommerce/sinalite.php 92% from 13 tests

The main file in "Printbest for WooCommerce" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sinalite-for-woocommerce.php" instead of "sinalite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected265 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP310226265

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.60
Average class complexity26.50
▷ Minimum class complexity3.00
▷ Maximum class complexity50.00
Average method complexity6.67
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/sinalite_logo.png3.28KB1.50KB▼ 54.30%