Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.96MB] [CPU: ▼56.38ms] Passed 4 tests
Server-side resources used by TouchBase Mail Subscribe Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.91 ▼35.64 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.67 ▼43.37 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.36 ▼51.67 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.40 ▼94.83 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.96 ▼28.89 |
TouchBase Mail /wp-admin/options-general.php?page=touchbasemail-subscribe-form | 2.05 | 5.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by TouchBase Mail Subscribe Form
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.22 ▼1.16 | 1.71 ▲0.01 | 39.07 ▼5.18 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▲0.94 | 100.80 ▼4.66 | 39.02 ▼0.99 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.06 | 38.33 ▲1.05 | 36.80 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,546 ▲27 | 18.06 ▼5.21 | 628.43 ▼55.48 | 56.16 ▲4.57 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▼0.06 | 98.40 ▼0.86 | 42.31 ▼5.71 |
TouchBase Mail /wp-admin/options-general.php?page=touchbasemail-subscribe-form | 792 | 2.03 | 28.31 | 28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the touchbasemail-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=touchbasemail-subscribe-form
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the touchbasemail-shortcode handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=touchbasemail-subscribe-form
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the touchbasemail-shortcode-wide handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=touchbasemail-subscribe-form
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the touchbasemail-shortcode-vertical handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/touchbase-mail-subscribe-form/trunk/touchbasemail-subscribe-form.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/touchbase-mail-subscribe-form/includes/shortcode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/touchbase-mail-subscribe-form/trunk/includes/shortcode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/touchbase-mail-subscribe-form/includes/options.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/touchbase-mail-subscribe-form/trunk/includes/options.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/touchbase-mail-subscribe-form/touchbasemail-subscribe-form.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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 require attention:
- Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
touchbase-mail-subscribe-form/touchbasemail-subscribe-form.php 77% from 13 tests
The entry point to "TouchBase Mail Subscribe Form" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("touchbase-mail-subscribe-form.php" instead of "touchbasemail-subscribe-form.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected325 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 71 | 162 |
CSS | 3 | 21 | 8 | 84 |
JavaScript | 1 | 22 | 17 | 79 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin