Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.36ms] Passed 4 tests
An overview of server-side resources used by Affiliate Booster - Pros & Cons, Notice, and CTA Blocks for Affiliates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.02 ▲0.05 |
Dashboard /wp-admin | 3.35 ▲0.01 | 53.56 ▼12.47 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 53.18 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 92.29 ▼4.82 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.89 ▲6.54 |
Enable/Disable Affiliate Booster Blocks /wp-admin/options-general.php?page=affiliate_booster_blocks | 3.81 | 44.91 |
Server storage [IO: ▲10.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 307 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Affiliate Booster - Pros & Cons, Notice, and CTA Blocks for Affiliates: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 13.50 ▼1.23 | 4.16 ▲2.35 | 40.35 ▼3.09 |
Dashboard /wp-admin | 2,240 ▲63 | 5.77 ▲0.12 | 86.58 ▼10.87 | 77.51 ▲37.97 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.27 ▲0.24 | 37.16 ▼4.80 | 35.49 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,841 | 28.06 ▲10.25 | 1,086.05 ▲454.15 | 40.12 ▼9.00 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.43 ▲0.22 | 100.31 ▼0.93 | 72.40 ▲24.55 |
Enable/Disable Affiliate Booster Blocks /wp-admin/options-general.php?page=affiliate_booster_blocks | 978 | 10.48 | 305.27 | 35.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
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 fix the following
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant AFB_DIR - assumed 'AFB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliatebooster-blocks/src/affiliate-helpers/class-affiliate-helper.php on line 101
- > PHP Warning
require_once(AFB_DIRdisableblocks/class-abdgb-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affiliatebooster-blocks/disableblocks/class-abdgb-admin-page.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliatebooster-blocks/disableblocks/class-abdgb-list-table.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'AFB_DIRdisableblocks/class-abdgb-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliatebooster-blocks/disableblocks/class-abdgb-admin-page.php on line 3
- > PHP Warning
require(AFB_DIRsrc/affiliate-helpers/class-affiliate-config.php): failed to open stream: No such file or directory in wp-content/plugins/affiliatebooster-blocks/src/affiliate-helpers/class-affiliate-helper.php on line 101
- > PHP Warning
Use of undefined constant AFB_DIR - assumed 'AFB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/affiliatebooster-blocks/disableblocks/class-abdgb-admin-page.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/affiliatebooster-blocks/disableblocks/class-abdgb-list-table.php on line 3
- > PHP Fatal error
require(): Failed opening required 'AFB_DIRsrc/affiliate-helpers/class-affiliate-helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliatebooster-blocks/src/affiliate-helpers/class-affiliate-loader.php on line 51
- > PHP Warning
require(AFB_DIRsrc/affiliate-helpers/class-affiliate-helper.php): failed to open stream: No such file or directory in wp-content/plugins/affiliatebooster-blocks/src/affiliate-helpers/class-affiliate-loader.php on line 51
- > PHP Fatal error
require(): Failed opening required 'AFB_DIRsrc/affiliate-helpers/class-affiliate-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/affiliatebooster-blocks/src/affiliate-helpers/class-affiliate-helper.php on line 101
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=affiliate_booster_blocks
- > Network (severe)
wp-content/plugins/affiliatebooster-blocks//dist/assets/js/ab-global-setting.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires at least: Version format is invalid
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8, #9 in affiliatebooster-blocks/assets to your readme.txt
affiliatebooster-blocks/affiliatebooster-blocks.php Passed 13 tests
The entry point to "Affiliate Booster - Pros & Cons, Notice, and CTA Blocks for Affiliates" version 3.0.4 is a PHP file that has certain tags in its header comment area
43 characters long description:
#1 affiliate plugin to increase your sales.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin120,159 lines of code in 255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 129 | 3,115 | 766 | 47,241 |
JSON | 2 | 0 | 0 | 38,435 |
Sass | 54 | 1,551 | 197 | 11,956 |
CSS | 37 | 2,191 | 55 | 11,002 |
PHP | 13 | 1,080 | 740 | 7,222 |
SVG | 20 | 15 | 5 | 4,303 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 58.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 408.00 |
Average method complexity | 7.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 86 | |
▷ Static methods | 45 | 52.33% |
▷ Public methods | 84 | 97.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.33% |
Functions | 22 | |
▷ Named functions | 19 | 86.36% |
▷ Anonymous functions | 3 | 13.64% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 8.11KB | 3.98KB | ▼ 50.95% |
assets/images/11-notification-1.png | 1.11KB | 1.08KB | ▼ 2.12% |
assets/images/13-coupon-1.png | 1.50KB | 1.47KB | ▼ 1.96% |
assets/images/05-good-and-bad-features-1.png | 1.39KB | 1.37KB | ▼ 1.75% |
assets/images/list-check.png | 1.41KB | 0.72KB | ▼ 48.96% |