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: ▼4.26ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Power - Sales Tracking for Affiliate Marketers
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 41.27 ▲4.46 |
Dashboard /wp-admin | 3.66 ▲0.31 | 53.27 ▼1.57 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 47.99 ▲1.57 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 82.11 ▼21.48 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 45.76 ▲13.98 |
Settings /wp-admin/admin.php?page=affiliate-power-settings | 3.55 | 33.75 |
Statistics /wp-admin/admin.php?page=affiliate-power-statistics | 3.55 | 37.49 |
Leads / Sales /wp-admin/admin.php?page=affiliate-power | 3.59 | 35.57 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ap_transaction |
New WordPress options |
---|
widget_recent-posts |
affiliate-power-options |
affiliate-power-meta-options |
theysaidso_admin_options |
affiliate-power-version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliate Power - Sales Tracking for Affiliate Marketers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲150 | 13.29 ▼1.07 | 4.72 ▲3.05 | 43.73 ▲4.56 |
Dashboard /wp-admin | 2,317 ▲140 | 5.73 ▲0.11 | 84.88 ▼2.89 | 85.61 ▲46.09 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.19 ▲0.18 | 38.54 ▲3.33 | 32.11 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,719 ▲184 | 22.05 ▲3.73 | 736.15 ▲115.48 | 48.72 ▼13.48 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.31 ▲0.08 | 119.19 ▲22.05 | 73.98 ▲30.14 |
Settings /wp-admin/admin.php?page=affiliate-power-settings | 1,259 | 2.13 | 33.64 | 36.22 |
Statistics /wp-admin/admin.php?page=affiliate-power-statistics | 1,090 | 2.10 | 37.06 | 26.51 |
Leads / Sales /wp-admin/admin.php?page=affiliate-power | 1,219 | 2.17 | 26.57 | 33.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/affiliate-power/csv-download.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: affiliate-power-csv in wp-content/plugins/affiliate-power/csv-download.php on line 9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: affiliate marketing, financeads, sales, awin, tracking
affiliate-power/affiliate-power.php Passed 13 tests
The main file in "Affiliate Power - Sales Tracking for Affiliate Marketers" v. 2.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
131 characters long description:
Import all your affiliate sales into your WordPress Backend. Analyze which posts, merchants and campaigns are creating your income.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,463 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 783 | 243 | 2,387 |
JavaScript | 3 | 20 | 48 | 76 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 71 | 76.34% |
▷ Public methods | 84 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.68% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 20 | |
▷ Global constants | 19 | 95.00% |
▷ Class constants | 1 | 5.00% |
▷ Public constants | 1 | 100.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
4 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/affiliate-power-ebook.png | 35.36KB | 12.18KB | ▼ 65.54% |
img/affiliate-power-36.png | 4.28KB | 1.65KB | ▼ 61.42% |
img/affiliate-power-16.png | 3.34KB | 0.88KB | ▼ 73.60% |
img/affiliate-power-premium.png | 46.75KB | 12.72KB | ▼ 72.80% |