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: ▲0.04MB] [CPU: ▼18.83ms] Passed 4 tests
This is a short check of server-side resources used by Simple Amazon Affiliate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 27.55 ▼15.67 |
Dashboard /wp-admin | 3.38 ▲0.08 | 32.59 ▼14.11 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 34.37 ▼17.23 |
Add New Post /wp-admin/post-new.php | 5.70 ▼0.19 | 68.94 ▼28.30 |
Media Library /wp-admin/upload.php | 3.40 ▲0.18 | 30.92 ▲0.08 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 3.36 | 28.28 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 3.36 | 26.65 |
Amazon Affiliate /wp-admin/admin.php?page=saa-affiliate | 3.36 | 25.95 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 3.36 | 29.86 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 164 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
recovery_mode_email_last_sent |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Simple Amazon Affiliate: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲249 | 13.89 ▼0.40 | 6.14 ▲4.29 | 44.79 ▼1.80 |
Dashboard /wp-admin | 2,268 ▲80 | 5.11 ▲0.07 | 105.24 ▲3.76 | 43.79 ▲1.27 |
Posts /wp-admin/edit.php | 2,156 ▲67 | 2.30 ▲0.26 | 35.49 ▼8.17 | 34.04 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,726 ▲183 | 22.22 ▲3.77 | 613.39 ▼23.37 | 27.18 ▼23.03 |
Media Library /wp-admin/upload.php | 1,453 ▲68 | 4.58 ▲0.36 | 97.19 ▼4.68 | 41.11 ▼1.09 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 782 | 1.14 | 6.69 | 23.82 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 914 | 2.10 | 28.24 | 26.47 |
Amazon Affiliate /wp-admin/admin.php?page=saa-affiliate | 1,182 | 6.06 | 107.02 | 62.32 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 835 | 1.95 | 26.52 | 24.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=duogeek-pro-licenses
- > Notice in wp-content/plugins/simple-amazon-affiliate/duogeek/duogeek-panel.php+147
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=duogeek-panel
- > Error in wp-content/plugins/simple-amazon-affiliate/duogeek/duogeek-panel.php+413
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/simple-amazon-affiliate/duogeek/duogeek-panel.php:413
Stack trace:
#0 wp-includes/class-wp-hook.php(310): DuoGeekPlugins->duogeek_panel_cb()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 50% 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 take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-amazon-affiliate/duogeek/duogeek-panel.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-amazon-affiliate/duogeek/class.customPostType.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-amazon-affiliate/duogeek/helper.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-amazon-affiliate/amazon-files/classes/class.widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-amazon-affiliate/simple-amazon-affiliate.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=saa-affiliate
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).iCheck is not a function" "TypeError: $(...).iCheck is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/simple-amazon-affiliate/duogeek/inc/duogeek.js?ver=1.1:8:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=saa-affiliate
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).iCheck is not a function
- > GET request to /wp-admin/admin.php?page=saa-affiliate
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=saa-affiliate
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: frequently asked questions, faqs, faq for wordpress, faq, faq wordpress...
simple-amazon-affiliate/simple-amazon-affiliate.php Passed 13 tests
The entry point to "Simple Amazon Affiliate" version 1.0.9 is a PHP file that has certain tags in its header comment area
76 characters long description:
A Simple and Revenue Generating Amazon Product Affiliate plugin from DuoGeek
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
There were no executable files found in this plugin16,670 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 55 | 838 | 300 | 9,583 |
JavaScript | 5 | 550 | 937 | 2,728 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
PHP | 5 | 264 | 78 | 1,099 |
SVG | 1 | 0 | 0 | 565 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 27.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 5 | 13.51% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 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
66 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
duogeek/inc/icheck/skins/flat/aero.png | 1.48KB | 1.66KB | 0.00% |
duogeek/inc/icheck/skins/minimal/yellow@2x.png | 1.37KB | 2.66KB | 0.00% |
duogeek/inc/icheck/skins/flat/orange@2x.png | 3.20KB | 2.86KB | ▼ 10.56% |
duogeek/inc/icheck/skins/flat/purple@2x.png | 3.14KB | 2.73KB | ▼ 12.99% |
duogeek/inc/icheck/skins/minimal/aero@2x.png | 1.38KB | 2.66KB | 0.00% |