Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲9.09MB] [CPU: ▲47.94ms] 50% from 4 tests
Server-side resources used by Themify Builder
The following require your attention
- RAM: The total memory usage must be kept under 10MB (currently 12.62MB on /wp-admin/edit.php?post_type=tb_cf)
- Extra RAM: The extra memory usage must be under 5MB (currently 9.09MB on /wp-admin/edit.php?post_type=tb_cf)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.78 ▲8.32 | 79.03 ▲37.23 |
Dashboard /wp-admin | 12.65 ▲9.30 | 92.30 ▲31.55 |
Posts /wp-admin/edit.php | 12.76 ▲9.41 | 107.99 ▲61.70 |
Add New Post /wp-admin/post-new.php | 18.69 ▲12.80 | 201.90 ▲100.51 |
Media Library /wp-admin/upload.php | 12.57 ▲9.34 | 94.74 ▲61.29 |
Saved Layouts /wp-admin/edit.php?post_type=tbuilder_layout | 12.64 | 85.21 |
Layout Parts /wp-admin/edit.php?post_type=tbuilder_layout_part | 12.64 | 86.07 |
System Status /wp-admin/admin.php?page=tf-status | 12.55 | 84.57 |
Global Styles /wp-admin/admin.php?page=themify-global-styles | 12.56 | 76.80 |
Settings /wp-admin/admin.php?page=themify-builder | 15.99 | 88.53 |
Custom Fonts /wp-admin/edit.php?post_type=tb_cf | 12.62 | 91.07 |
Server storage [IO: ▲11.82MB] [DB: ▲0.04MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,821 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_tf_storage |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_themify-layout-parts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Themify Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,088 ▲341 | 13.39 ▼0.93 | 10.32 ▲8.57 | 36.37 ▼7.73 |
Dashboard /wp-admin | 2,310 ▲132 | 5.69 ▼0.03 | 96.58 ▼18.16 | 44.97 ▼1.67 |
Posts /wp-admin/edit.php | 2,198 ▲95 | 2.04 ▲0.08 | 40.60 ▲4.67 | 35.11 ▲0.06 |
Add New Post /wp-admin/post-new.php | 12,279 ▲10,740 | 31.01 ▲7.65 | 1,296.47 ▲640.20 | 54.78 ▲5.16 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.22 ▼0.02 | 147.48 ▲46.52 | 61.21 ▲14.56 |
Saved Layouts /wp-admin/edit.php?post_type=tbuilder_layout | 1,444 | 3.56 | 68.19 | 37.62 |
Add Builder Page /wp-admin/edit.php?post_type=page&page=#tb_builder_page | 28 | 0.41 | 0.12 | 3.61 |
Layout Parts /wp-admin/edit.php?post_type=tbuilder_layout_part | 1,439 | 3.89 | 64.23 | 32.25 |
System Status /wp-admin/admin.php?page=tf-status | 1,192 | 1.69 | 28.94 | 30.43 |
Global Styles /wp-admin/admin.php?page=themify-global-styles | 1,167 | 3.07 | 46.52 | 28.77 |
Settings /wp-admin/admin.php?page=themify-builder | 2,770 | 2.09 | 27.03 | 49.44 |
Custom Fonts /wp-admin/edit.php?post_type=tb_cf | 1,118 | 2.53 | 55.69 | 30.41 |
Uninstaller [IO: ▲0.10MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_tf_storage
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_themify-layout-parts
- widget_recent-comments
- theysaidso_admin_options
- 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 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
Almost there! Just fix the following items
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant THEMIFY_URI - assumed 'THEMIFY_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/themify-builder/plugin/tpl/tmpl-builder-plugin-settings-page.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/themify-builder/themify/class-themify-custom-fonts.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themify-builder/theme-options.php:148
- > PHP Fatal error
Uncaught Error: Class 'Themify_Builder' not found in wp-content/plugins/themify-builder/includes/tpl/tmpl-common.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themify-builder/themify/class-themify-maintenance-mode.php:138
- > PHP Warning
Use of undefined constant THEMIFY_BUILDER_DIR - assumed 'THEMIFY_BUILDER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/themify-builder/includes/tpl/tmpl-locked.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themify-builder/themify/class-tf-term-image.php:9
- > PHP Warning
file_get_contents(THEMIFY_BUILDER_DIR/css/editor/modules/locked.css): failed to open stream: No such file or directory in wp-content/plugins/themify-builder/includes/tpl/tmpl-locked.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/themify-builder/templates/page-template-blank.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/themify-builder/themify/includes/conditions.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=page&page=#tb_builder_page
- > Network (severe)
wp-admin/edit.php?post_type=page&page=#tb_builder_page - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% 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
Please fix the following attributes:
- Tags: You are using too many tags: 19 tag instead of maximum 10
themify-builder/themify-builder.php 77% from 13 tests
Analyzing the main PHP file in "Themify Builder" version 7.0.5
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin156,748 lines of code in 992 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 209 | 4,705 | 8,141 | 75,531 |
JavaScript | 239 | 1,971 | 1,333 | 52,150 |
CSS | 483 | 195 | 530 | 28,345 |
XML | 1 | 4 | 0 | 662 |
SVG | 57 | 0 | 0 | 57 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 37.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 547.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 1 | 0.78% |
▷ Concrete classes | 127 | 99.22% |
▷ Final classes | 9 | 7.09% |
Methods | 1,381 | |
▷ Static methods | 717 | 51.92% |
▷ Public methods | 1,166 | 84.43% |
▷ Protected methods | 103 | 7.46% |
▷ Private methods | 112 | 8.11% |
Functions | 430 | |
▷ Named functions | 428 | 99.53% |
▷ Anonymous functions | 2 | 0.47% |
Constants | 57 | |
▷ Global constants | 25 | 43.86% |
▷ Class constants | 32 | 56.14% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/row-frame/none.png | 0.50KB | 0.57KB | 0.00% |
themify/img/select.png | 0.32KB | 0.36KB | 0.00% |
themify/img/sidebars/2col.png | 0.09KB | 0.10KB | 0.00% |
themify/img/arrow-down.png | 0.11KB | 0.14KB | 0.00% |
themify/themify-metabox/img/ddbtn-check.png | 0.14KB | 0.23KB | 0.00% |