83% yoycol-print-on-demand

Code Review | Yoycol Integration for WooCommerce

WordPress plugin Yoycol Integration for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: yoycol-print-on-d...
  • Plugin version: 1.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2020
  • Latest release: Jun 8, 2023
  • Number of updates: 16
  • Update frequency: every 57.8 days
  • Top authors: yoycolofficial (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /4,386 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.58ms] Passed 4 tests

An overview of server-side resources used by Yoycol Integration for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.79 ▲4.99
Dashboard /wp-admin3.35 ▲0.0148.65 ▼14.82
Posts /wp-admin/edit.php3.40 ▲0.0546.80 ▼1.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.24 ▼13.74
Media Library /wp-admin/upload.php3.28 ▲0.0537.56 ▼0.24

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yoycol Integration for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,999 ▲23815.18 ▲0.891.64 ▲0.0243.29 ▲1.73
Dashboard /wp-admin2,399 ▲2186.51 ▲0.80120.00 ▲12.5040.74 ▲0.71
Posts /wp-admin/edit.php2,274 ▲1743.66 ▲1.6566.23 ▲29.5931.67 ▼1.81
Add New Post /wp-admin/post-new.php1,547 ▲1924.48 ▲1.17726.14 ▲43.0437.44 ▼32.04
Media Library /wp-admin/upload.php1,641 ▲2446.12 ▲1.91144.81 ▲33.8848.14 ▲2.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function yoycol\\Admin\\add_action() in wp-content/plugins/yoycol-print-on-demand/includes/admin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

yoycol-print-on-demand/yoycol-for-woocommerce.php 85% from 13 tests

"Yoycol Integration for WooCommerce" version 1.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yoycol-print-on-demand.php" instead of "yoycol-for-woocommerce.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin299 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP22222205
JSON20047
JavaScript572144
CSS1012
HTML1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/logo512.png9.44KB10.35KB0.00%
build/logo192.png5.22KB5.57KB0.00%