Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼138.85ms] Passed 4 tests
A check of server-side resources used by Woomio (Influencer marketing)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 44.66 ▲21.67 |
Dashboard /wp-admin | 3.21 ▲0.15 | 54.09 ▲6.43 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 47.64 ▲3.89 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 98.12 ▼565.52 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 34.53 ▼0.19 |
Tokens /wp-admin/admin.php?page=woomio-for-woocommerce-token | 3.14 | 28.74 |
Add Token /wp-admin/admin.php?page=woomio-for-woocommerce-add-token | 3.14 | 33.04 |
Dashboard /wp-admin/admin.php?page=woomio-for-woocommerce | 3.13 | 30.03 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_wfw_token |
wp_wfw_coupon_token |
wp_wfw_token_sales |
New WordPress options |
---|
wfw_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Woomio (Influencer marketing)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲170 | 15.87 ▲0.53 | 12.75 ▲1.68 | 54.49 ▲8.96 |
Dashboard /wp-admin | 3,033 ▲99 | 5.95 ▼0.02 | 146.17 ▼5.85 | 109.89 ▲1.93 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.73 ▲0.02 | 66.39 ▼0.15 | 89.15 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,657 ▼26 | 21.42 ▲3.11 | 308.41 ▼119.21 | 105.69 ▼1.23 |
Media Library /wp-admin/upload.php | 1,871 ▲64 | 5.05 ▲0.01 | 150.10 ▼2.90 | 120.08 ▲0.12 |
Tokens /wp-admin/admin.php?page=woomio-for-woocommerce-token | 1,365 | 3.39 | 96.22 | 111.37 |
Add Token /wp-admin/admin.php?page=woomio-for-woocommerce-add-token | 1,373 | 3.44 | 85.50 | 96.51 |
Dashboard /wp-admin/admin.php?page=woomio-for-woocommerce | 1,331 | 3.28 | 84.73 | 110.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=woomio-for-woocommerce-add-token
- > Notice in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php+25
Undefined index: campaign_name
- > GET request to /wp-admin/admin.php?page=woomio-for-woocommerce-add-token
- > Notice in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php+30
Undefined index: campaign_url
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woomio-influencer-marketing/admin/partials/template-token-add.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woomio for woocommerce, woomio, influencer marketing
woomio-influencer-marketing/woomio-influencer-marketing.php 85% from 13 tests
The principal PHP file in "Woomio (Influencer marketing)" v. 1.0.4 is loaded by WordPress automatically on each request
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
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
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
Success! There were no dangerous files found in this plugin1,173 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 272 | 259 | 893 |
JavaScript | 6 | 19 | 39 | 273 |
CSS | 5 | 3 | 21 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 33 | 82.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 17.50% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected