Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼139.08ms] Passed 4 tests
An overview of server-side resources used by Add Tracking Code To WC Thank You Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 27.58 ▲5.12 |
Dashboard /wp-admin | 3.06 ▲0.01 | 41.43 ▲4.65 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 34.79 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.78 ▼543.38 |
Media Library /wp-admin/upload.php | 3.01 ▼0.00 | 25.88 ▼11.74 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add Tracking Code To WC Thank You Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.79 ▲0.18 | 7.41 ▼0.69 | 48.48 ▼2.87 |
Dashboard /wp-admin | 2,970 ▲39 | 6.08 ▲0.15 | 133.79 ▼19.41 | 104.42 ▼20.60 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 65.27 ▲1.69 | 90.44 ▲5.68 |
Add New Post /wp-admin/post-new.php | 1,615 ▼55 | 21.83 ▲2.70 | 259.94 ▼109.87 | 107.28 ▼24.36 |
Media Library /wp-admin/upload.php | 1,813 ▲3 | 5.03 ▲0.04 | 152.69 ▲4.29 | 118.39 ▼10.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #0 is missing in add-tracking-code-to-wc-thank-you-page/assets to your readme.txt
- Screenshots: Screenshot #1 (This is where you can add the tracking code.) image required
- Donate link: Please fix this invalid url: ""
add-tracking-code-to-wc-thank-you-page/tracking-code-for-wc-thankyou.php 85% from 13 tests
The primary PHP file in "Add Tracking Code To WC Thank You Page" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-tracking-code-to-wc-thank-you-page.php" instead of "tracking-code-for-wc-thankyou.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected131 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 57 | 62 | 131 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected