Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.98ms] Passed 4 tests
A check of server-side resources used by ThoughtMetric for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.50 ▼7.81 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.51 ▼7.18 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.30 ▼4.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.45 ▼0.78 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 44.05 ▲9.02 |
ThoughtMetric /wp-admin/options-general.php?page=thoughtmetric | 3.23 | 32.66 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
thoughtmetric_snippet |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for ThoughtMetric for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.22 ▼0.26 | 2.24 ▲0.47 | 46.98 ▲2.89 |
Dashboard /wp-admin | 2,203 ▲26 | 5.57 ▼0.09 | 89.36 ▼12.77 | 50.59 ▲7.54 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.13 ▲0.15 | 39.55 ▼0.01 | 45.94 ▲10.93 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.35 ▲0.01 | 670.92 ▼27.84 | 70.09 ▲5.65 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.19 ▲0.01 | 101.85 ▼0.31 | 56.23 ▲10.90 |
ThoughtMetric /wp-admin/options-general.php?page=thoughtmetric | 829 | 2.17 | 22.17 | 45.29 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- thoughtmetric_snippet
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/thoughtmetric-for-woocommerce/inc/thoughtmetric-admin-settings.php:12
- > 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 93% from 29 tests
readme.txt Passed 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
5 plugin tags: attribution, thought metric, marketing analytics, marketing attribution, thoughtmetric
thoughtmetric-for-woocommerce/thoughtmetric-ecommerce.php 85% from 13 tests
The main file in "ThoughtMetric for WooCommerce" v. 1.19.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("thoughtmetric-for-woocommerce.php" instead of "thoughtmetric-ecommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin286 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 59 | 51 | 206 |
CSS | 1 | 15 | 0 | 80 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tm-logo.png | 20.71KB | 10.77KB | ▼ 48.00% |