Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲3.69MB] [CPU: ▼292.31ms] Passed 4 tests
Server-side resources used by Quick Affiliate Store
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.53 ▲4.01 | 78.04 ▲23.74 |
Dashboard /wp-admin | 7.55 ▲4.14 | 53.21 ▲15.60 |
Posts /wp-admin/edit.php | 7.55 ▲3.91 | 62.28 ▲22.38 |
Add New Post /wp-admin/post-new.php | 9.69 ▲2.71 | 125.71 ▼1,218.70 |
Media Library /wp-admin/upload.php | 7.55 ▲4.25 | 44.53 ▲11.49 |
Quick Affiliate Store /wp-admin/options-general.php?page=quick_affiliate_store | 7.55 | 45.44 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.55 | 40.15 |
Server storage [IO: ▲3.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_gdpr |
fs_api_cache |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
Quick Affiliate Store: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲83 | 15.66 ▼0.04 | 6.49 ▼0.01 | 3.19 ▲0.28 |
Dashboard /wp-admin | 2,928 ▲74 | 6.14 ▼0.04 | 117.00 ▼20.19 | 174.25 ▲6.77 |
Posts /wp-admin/edit.php | 2,724 ▲33 | 3.23 ▼0.02 | 70.69 ▲4.02 | 161.47 ▲19.82 |
Add New Post /wp-admin/post-new.php | 1,771 ▲55 | 16.99 ▼3.93 | 433.73 ▼57.20 | 166.23 ▲18.21 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.52 ▼0.00 | 162.06 ▲18.53 | 201.22 ▼31.32 |
Quick Affiliate Store /wp-admin/options-general.php?page=quick_affiliate_store | 1,252 | 2.45 | 55.45 | 216.45 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,448 | 2.54 | 55.65 | 130.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 5 options in the database
- fs_accounts
- fs_gdpr
- fs_debug_mode
- fs_active_plugins
- fs_api_cache
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/quick-affiliate-store/freemius/templates/ajax-loader.php
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 7
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/quick-affiliate-store/public/partials/quick-affiliate-store-products-grid.php on line 1
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/quick-affiliate-store/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/quick-affiliate-store/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/quick-affiliate-store/public/partials/quick-affiliate-store-products-grid.php:27
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: amazon affiliate, store, affiliate, affiliate marketing, amazon...
quick-affiliate-store/quick-affiliate-store.php Passed 13 tests
"Quick Affiliate Store" version 0.5.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Monetize your Wordpress site with affiliate marketing. Supports Amazon feed.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin41,623 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 6,345 | 14,583 | 26,610 |
PO File | 11 | 5,553 | 6,670 | 12,029 |
Sass | 28 | 399 | 77 | 2,515 |
JavaScript | 3 | 34 | 59 | 194 |
Markdown | 1 | 61 | 0 | 192 |
CSS | 11 | 12 | 0 | 83 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 69.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 3 | 6.12% |
▷ Concrete classes | 46 | 93.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,069 | |
▷ Static methods | 166 | 15.53% |
▷ Public methods | 746 | 69.78% |
▷ Protected methods | 18 | 1.68% |
▷ Private methods | 305 | 28.53% |
Functions | 92 | |
▷ Named functions | 92 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 116 | |
▷ Global constants | 96 | 82.76% |
▷ Class constants | 20 | 17.24% |
▷ Public constants | 20 | 100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/quick-affiliate-store.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
public/img/no-image.png | 25.42KB | 12.61KB | ▼ 50.40% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |