84% tailor-woocommerce

Code Review | Tailor Page Builder: WooCommerce Extension

WordPress plugin Tailor Page Builder: WooCommerce Extension scored84%from 54 tests.

About plugin

  • Plugin page: tailor-woocommerce
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Oct 30, 2016
  • Number of updates: 13
  • Update frequency: every 28.6 days
  • Top authors: andrew.worsfold (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,628 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.93ms] Passed 4 tests

This is a short check of server-side resources used by Tailor Page Builder: WooCommerce Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.90 ▲2.07
Dashboard /wp-admin3.34 ▼0.0145.82 ▼11.36
Posts /wp-admin/edit.php3.45 ▲0.1051.77 ▲2.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.35 ▼14.93
Media Library /wp-admin/upload.php3.26 ▲0.0335.92 ▲0.51

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Tailor Page Builder: WooCommerce Extension: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.53 ▼1.221.63 ▼0.1642.11 ▲2.26
Dashboard /wp-admin2,221 ▲334.85 ▼1.05104.70 ▼3.1741.23 ▼3.59
Posts /wp-admin/edit.php2,100 ▲142.02 ▲0.0237.08 ▼0.3432.78 ▼2.60
Add New Post /wp-admin/post-new.php1,540 ▼223.11 ▲4.76697.18 ▲87.7352.64 ▼1.97
Media Library /wp-admin/upload.php1,394 ▲94.21 ▼0.0396.53 ▼2.1444.54 ▲1.24

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor-woocommerce/includes/shortcodes/shortcode-testimonial.php:78
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor-woocommerce/includes/shortcodes/shortcode-products.php:146
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor-woocommerce/includes/shortcodes/shortcode-pricing.php:88

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
The official readme.txt might help

tailor-woocommerce/tailor-woocommerce.php Passed 13 tests

"Tailor Page Builder: WooCommerce Extension" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Adds WooCommerce support and shop functionality to the Tailor plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,386 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP11163425899
Sass96018281
CSS444137
JavaScript314061
Markdown1508

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.25
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2083.33%
▷ Protected methods416.67%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin