89% yakit

Code Review | Yakit for WooCommerce

WordPress plugin Yakit for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: yakit
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 12, 2017
  • Latest release: Feb 14, 2018
  • Number of updates: 27
  • Update frequency: every 8.1 days
  • Top authors: jeyapriya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 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.01MB] [CPU: ▼9.24ms] Passed 4 tests

A check of server-side resources used by Yakit for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.13 ▲0.29
Dashboard /wp-admin3.31 ▼0.0449.32 ▼20.02
Posts /wp-admin/edit.php3.36 ▲0.0046.25 ▼2.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.41 ▼14.25
Media Library /wp-admin/upload.php3.23 ▲0.0038.56 ▼0.14

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

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

Browser metrics Passed 4 tests

Yakit for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.072.37 ▲0.8144.60 ▲5.63
Dashboard /wp-admin2,198 ▲185.64 ▼0.1585.13 ▼5.7637.95 ▼5.85
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0638.11 ▼1.4238.10 ▼0.10
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.21664.94 ▲12.7053.89 ▲1.37
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.03105.39 ▲1.5449.47 ▲3.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: ddp, woocommerce, guaranteed duties and taxes, shipping

yakit/yakit-shipping.php 69% from 13 tests

"Yakit for WooCommerce" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yakit.php" instead of "yakit-shipping.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/yakit.com")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("yakit.com")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin262 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15773262

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin