Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼3.88ms] Passed 4 tests
This is a short check of server-side resources used by TMA-WebTools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.08 ▲2.40 |
Dashboard /wp-admin | 3.76 ▲0.42 | 51.17 ▼9.21 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 58.52 ▲10.51 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 89.52 ▼8.80 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 34.60 ▲0.08 |
Settings /wp-admin/admin.php?page=tma-webtools-setting-admin | 3.60 | 39.29 |
TMA WebTools /wp-admin/admin.php?page=tma-webtools/pages/tma-webtools-admin.php | 3.59 | 36.66 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
tma_webtools_option |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TMA-WebTools
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲245 | 15.04 ▲0.39 | 1.83 ▼0.20 | 43.91 ▲1.76 |
Dashboard /wp-admin | 2,391 ▲200 | 6.63 ▲1.72 | 128.77 ▲25.89 | 36.91 ▼2.47 |
Posts /wp-admin/edit.php | 2,294 ▲205 | 3.51 ▲1.38 | 52.69 ▲11.63 | 31.87 ▼5.12 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,730 | 25.88 ▲2.67 | 881.64 ▲139.42 | 38.69 ▼21.33 |
Media Library /wp-admin/upload.php | 1,430 ▲51 | 4.35 ▲0.12 | 86.65 ▼23.69 | 41.86 ▼1.28 |
Settings /wp-admin/admin.php?page=tma-webtools-setting-admin | 1,118 | 3.42 | 46.69 | 29.63 |
TMA WebTools /wp-admin/admin.php?page=tma-webtools/pages/tma-webtools-admin.php | 1,134 | 3.36 | 40.51 | 47.35 |
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-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tma-webtools/pages/tma-webtools-admin.php
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function TMA\\get_option() in wp-content/plugins/tma-webtools/includes/modules/woocommerce/class.frontend.wc_tracker.php:36
- > PHP Fatal error
Uncaught Error: Class 'TMA\\Plugins' not found in wp-content/plugins/tma-webtools/includes/modules/woocommerce/module.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function TMA\\add_filter() in wp-content/plugins/tma-webtools/includes/modules/editors/class.beaverbuilder.preview.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/tma-webtools/includes/widgets/siteorigin/tma_content/tpl/tma-content.php:2
- > PHP Fatal error
Uncaught Error: Class 'TMA\\Integration' not found in wp-content/plugins/tma-webtools/includes/frontend/template_tags.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function TMA\\is_admin_bar_showing() in wp-content/plugins/tma-webtools/includes/backend/class.tma_wpadminbar.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function TMA\\is_admin() in wp-content/plugins/tma-webtools/includes/backend/class.tma_ajax.php:86
- > PHP Fatal error
require_once(): Failed opening required 'TMA_WEBTOOLS_DIR/modules/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/tma-webtools/includes/backend/class.tma_settings.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/tma-webtools/includes/widgets/siteorigin/tma_content/tma_content.php:18
- > PHP Warning
require_once(TMA_WEBTOOLS_DIR/modules/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/tma-webtools/includes/backend/class.tma_settings.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: woocommerce, analytics, behaviour targets, digital experience platform, targeting...
tma-webtools/tma-webtools.php Passed 13 tests
Analyzing the main PHP file in "TMA-WebTools" version 1.5.1
47 characters long description:
The integration for webtools user segmentation.
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
Good job! No executable or dangerous file extensions detected4,161 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 659 | 1,023 | 2,751 |
HTML | 1 | 125 | 0 | 567 |
JavaScript | 6 | 64 | 111 | 556 |
CSS | 2 | 10 | 23 | 184 |
PO File | 1 | 40 | 53 | 103 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 1 | 3.57% |
Methods | 165 | |
▷ Static methods | 12 | 7.27% |
▷ Public methods | 140 | 84.85% |
▷ Protected methods | 17 | 10.30% |
▷ Private methods | 8 | 4.85% |
Functions | 25 | |
▷ Named functions | 17 | 68.00% |
▷ Anonymous functions | 8 | 32.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tma_content.png | 0.43KB | 0.47KB | 0.00% |
images/tma_content_vc_icon.png | 8.70KB | 3.72KB | ▼ 57.24% |
images/tma_content_vc_icon_trans.png | 5.88KB | 4.30KB | ▼ 26.83% |