78% tailor

Code Review | Tailor Page Builder

WordPress plugin Tailor Page Builder scored78%from 54 tests.

About plugin

  • Plugin page: tailor
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Apr 10, 2016
  • Latest release: Nov 24, 2017
  • Number of updates: 115
  • Update frequency: every 5.6 days
  • Top authors: andrew.worsfold (97.39%)enclavely (3.48%)

Code review

54 tests

User reviews

53 reviews

Install metrics

600+ active /61,032 total downloads

Benchmarks

Plugin footprint 82% 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: ▲5.28MB] [CPU: ▲26.79ms] 75% from 4 tests

This is a short check of server-side resources used by Tailor Page Builder
Please fix the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.28MB on /wp-admin/options-general.php?page=tailor_settings)
PageMemory (MB)CPU Time (ms)
Home /8.57 ▲5.1169.73 ▲30.10
Dashboard /wp-admin8.49 ▲5.1977.81 ▲29.03
Posts /wp-admin/edit.php9.97 ▲6.6198.86 ▲47.27
Add New Post /wp-admin/post-new.php11.51 ▲5.62123.47 ▲8.90
Media Library /wp-admin/upload.php8.44 ▲5.2176.89 ▲39.11
Tailor /wp-admin/options-general.php?page=tailor_settings8.4470.32

Server storage [IO: ▲3.82MB] [DB: ▲0.03MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 490 new files
Database: no new tables, 7 new options
New WordPress options
_tailor_editor_styles
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Tailor Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▼0.251.68 ▼0.2637.59 ▼5.91
Dashboard /wp-admin2,199 ▲225.59 ▼0.0792.83 ▲3.6440.30 ▲1.70
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0140.43 ▼0.6435.66 ▼4.52
Add New Post /wp-admin/post-new.php1,535 ▲922.69 ▼0.34673.98 ▲52.8350.29 ▼4.00
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.04100.94 ▼4.2844.23 ▼0.69
Tailor /wp-admin/options-general.php?page=tailor_settings1,3213.2349.6440.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tailor/uninstall.php
  • 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-section.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-box.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-gallery.php:134
    • > PHP Notice
      Trying to get property 'max_num_pages' of non-object in wp-content/plugins/tailor/partials/pagination-links.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-button.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-user.php:88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-map.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tailor/includes/shortcodes/shortcode-form.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tailor/includes/admin/class-edit-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tailor/includes/helpers/helpers-markup.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
The official readme.txt might help

tailor/tailor.php Passed 13 tests

The main PHP file in "Tailor Page Builder" ver. 1.8.2 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Build beautiful page layouts quickly and easily using your favourite theme.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected58,071 lines of code in 460 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1706,34515,28923,366
PHP1854,98210,81019,742
Sass861,5286346,304
CSS121,052456,163
PO File29191,1722,171
Markdown4700304
JSON10021

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 130)
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity18.63
▷ Minimum class complexity1.00
▷ Maximum class complexity693.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity130.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes104
▷ Abstract classes54.81%
▷ Concrete classes9995.19%
▷ Final classes00.00%
Methods768
▷ Static methods324.17%
▷ Public methods37749.09%
▷ Protected methods36347.27%
▷ Private methods283.65%
Functions142
▷ Named functions11681.69%
▷ Anonymous functions2618.31%
Constants61
▷ Global constants34.92%
▷ Class constants5895.08%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/empty.png0.09KB0.09KB0.00%