Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.99MB] [CPU: ▼293.60ms] Passed 4 tests
A check of server-side resources used by Affiliate Link Builder Plugin for Amazon Associates - Review Engine
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.36 ▲3.85 | 74.03 ▲22.63 |
Dashboard /wp-admin | 7.38 ▲3.97 | 56.00 ▲22.95 |
Posts /wp-admin/edit.php | 7.38 ▲3.74 | 56.91 ▲20.47 |
Add New Post /wp-admin/post-new.php | 7.38 ▲0.41 | 46.50 ▼1,233.51 |
Media Library /wp-admin/upload.php | 7.38 ▲4.08 | 41.30 ▲16.01 |
Freemius Debug [v.2.1.2] /wp-admin/admin.php?page=freemius | 7.38 | 41.50 |
Server storage [IO: ▲4.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 260 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_accounts |
fs_gdpr |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Link Builder Plugin for Amazon Associates - Review Engine
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,962 ▲218 | 16.26 ▲0.57 | 10.82 ▲4.22 | 2.26 ▼0.24 |
Dashboard /wp-admin | 2,941 ▲87 | 6.07 ▼0.13 | 118.79 ▼30.49 | 165.74 ▲3.32 |
Posts /wp-admin/edit.php | 2,747 ▲56 | 3.25 ▲0.01 | 65.22 ▲2.94 | 154.25 ▲10.15 |
Add New Post /wp-admin/post-new.php | 1,721 ▼31 | 20.28 ▼1.47 | 424.56 ▼12.00 | 171.82 ▲11.68 |
Media Library /wp-admin/upload.php | 1,754 ▲56 | 5.55 ▲0.04 | 145.08 ▼0.28 | 203.05 ▲16.49 |
Freemius Debug [v.2.1.2] /wp-admin/admin.php?page=freemius | 1,450 | 2.49 | 55.10 | 126.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 5 options
- fs_active_plugins
- fs_api_cache
- fs_gdpr
- fs_accounts
- fs_debug_mode
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/review-engine/includes/vendor/freemius-sdk/templates/ajax-loader.php
- 21× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-engine/includes/display/link/views/content.php:2
- > PHP Notice
Undefined variable: style in wp-content/plugins/review-engine/includes/shortcodes/button/frontend.css.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-engine/includes/modal-types/insert/views/content.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-engine/includes/display/button/views/content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-engine/includes/display/image/views/content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/review-engine/includes/metabox/views/content.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_settings_sections() in wp-content/plugins/review-engine/includes/settings-tabs/general/views/content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-engine/includes/settings/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/review-engine/includes/vendor/freemius-sdk/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/review-engine/includes/vendor/freemius-sdk/templates/account/partials/addon.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: amazon, amazon associates, affiliate link builder, affiliate, affiliate marketing
review-engine/reviewengine.php 85% from 13 tests
The primary PHP file in "Affiliate Link Builder Plugin for Amazon Associates - Review Engine" version 1.0.41 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 ("review-engine.php" instead of "reviewengine.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected44,677 lines of code in 211 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 6,733 | 14,030 | 28,278 |
PO File | 9 | 4,216 | 4,944 | 9,156 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 25 | 390 | 77 | 2,443 |
JavaScript | 18 | 277 | 125 | 1,385 |
CSS | 21 | 86 | 35 | 465 |
Markdown | 2 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 37 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,244)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 58.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,244.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 1 | 1.69% |
Methods | 1,150 | |
▷ Static methods | 266 | 23.13% |
▷ Public methods | 817 | 71.04% |
▷ Protected methods | 15 | 1.30% |
▷ Private methods | 318 | 27.65% |
Functions | 117 | |
▷ Named functions | 117 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 133 | |
▷ Global constants | 113 | 84.96% |
▷ Class constants | 20 | 15.04% |
▷ Public constants | 20 | 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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/freemius-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/vendor/freemius-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/vendor/freemius-sdk/assets/img/reviewengine.png | 9.16KB | 5.26KB | ▼ 42.58% |