Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.90ms] Passed 4 tests
Server-side resources used by Call To Action Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.44 ▼2.17 |
Dashboard /wp-admin | 3.48 ▲0.14 | 46.47 ▼17.68 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 47.46 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 91.65 ▼5.26 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.26 ▲0.70 |
All CTA /wp-admin/edit.php?post_type=cta | 3.45 | 36.90 |
Add New CTA /wp-admin/post-new.php?post_type=cta | 3.46 | 46.21 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Call To Action Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.43 ▼0.92 | 9.21 ▲7.52 | 44.22 ▲0.79 |
Dashboard /wp-admin | 2,221 ▲41 | 5.58 ▼0.06 | 87.20 ▼5.69 | 35.79 ▼7.40 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.99 ▲0.01 | 33.81 ▼3.32 | 32.45 ▼4.64 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.09 ▲0.11 | 683.11 ▲81.69 | 56.28 ▼3.89 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.19 ▲0.01 | 99.79 ▲0.61 | 41.80 ▲0.66 |
All CTA /wp-admin/edit.php?post_type=cta | 1,143 | 1.97 | 34.26 | 27.34 |
Add New CTA /wp-admin/post-new.php?post_type=cta | 2,139 | 3.66 | 60.71 | 34.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cta-builder/includes/trs_shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/includes/trs_create_meta_boxes.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/includes/trs_cta_image_properties_render_metabox.php:253
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/includes/trs_cta_text_properties_render_metabox.php:237
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/includes/trs_cta_banner_sizes_render_metabox.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cta-builder/trs_cta_builder.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/functions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cta-builder/includes/functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cta-builder/trs_cta_activate.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cta-builder/includes/trs_cta_register_widget.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=cta
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=cta 492 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/post-new.php?post_type=cta
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=cta 510 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/post-new.php?post_type=cta
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=cta 603 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/post-new.php?post_type=cta
- > Rendering (warning) in unknown
/wp-admin/post-new.php?post_type=cta 619 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in cta-builder/assets to your readme.txt
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cta-builder/trs_cta_builder.php 77% from 13 tests
Analyzing the main PHP file in "Call To Action Builder" version 1.1
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("cta-builder.php" instead of "trs_cta_builder.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 438 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
Success! There were no dangerous files found in this plugin1,391 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 170 | 242 | 1,260 |
CSS | 2 | 18 | 4 | 117 |
JavaScript | 1 | 2 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 2 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected