Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▲24.57ms] Passed 4 tests
An overview of server-side resources used by affiliate-toolkit – WordPress Affiliate Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 59.77 ▲23.35 |
Dashboard /wp-admin | 3.73 ▲0.43 | 76.34 ▲27.08 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 70.35 ▲18.82 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 127.86 ▲42.23 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 62.25 ▲29.04 |
Product import /wp-admin/admin.php?page=atkp_bulkimport | 3.59 | 58.32 |
Templates /wp-admin/admin.php?page=ATKP_viewtemplate | 3.61 | 59.10 |
Shortcode Generator /wp-admin/admin.php?page=ATKP_affiliate_toolkit-shortcodegenerator | 3.59 | 60.89 |
Tools /wp-admin/admin.php?page=ATKP_affiliate_toolkit-tools | 3.59 | 57.35 |
Shops /wp-admin/edit.php?post_type=atkp_shop | 3.75 | 67.25 |
Queues /wp-admin/admin.php?page=ATKP_viewqueue | 3.77 | 105.65 |
Lists /wp-admin/edit.php?post_type=atkp_list | 3.67 | 61.47 |
Settings /wp-admin/admin.php?page=ATKP_affiliate_toolkit-plugin | 3.60 | 62.83 |
Products /wp-admin/edit.php?post_type=atkp_product | 3.75 | 66.60 |
Product category /wp-admin/edit-tags.php?taxonomy=productcategory | 3.62 | 58.76 |
Server storage [IO: ▲16.56MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,255 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_atkp_queues_entries |
wp_atkp_queues |
New WordPress options |
---|
db_upgraded |
atkp_version_plugin |
widget_atkp_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
ATKP_version_posts_queues |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for affiliate-toolkit – WordPress Affiliate Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,509 ▲1,722 | 13.82 ▼0.46 | 5.66 ▲3.85 | 41.53 ▼0.92 |
Dashboard /wp-admin | 3,810 ▲1,630 | 5.18 ▼0.49 | 108.25 ▲14.01 | 81.63 ▲36.98 |
Posts /wp-admin/edit.php | 3,742 ▲1,639 | 2.49 ▲0.54 | 41.44 ▼1.80 | 32.61 ▼3.78 |
Add New Post /wp-admin/post-new.php | 7,948 ▲6,422 | 19.01 ▼4.23 | 967.40 ▲277.65 | 75.84 ▲16.35 |
Media Library /wp-admin/upload.php | 3,014 ▲1,614 | 4.75 ▲0.57 | 102.57 ▲4.07 | 80.27 ▲39.15 |
Product import /wp-admin/admin.php?page=atkp_bulkimport | 2,662 | 2.43 | 48.87 | 30.26 |
Templates /wp-admin/admin.php?page=ATKP_viewtemplate | 2,626 | 2.16 | 34.16 | 28.09 |
Shortcode Generator /wp-admin/admin.php?page=ATKP_affiliate_toolkit-shortcodegenerator | 5,523 | 2.19 | 46.81 | 33.12 |
Tools /wp-admin/admin.php?page=ATKP_affiliate_toolkit-tools | 2,520 | 2.35 | 35.19 | 25.92 |
Shops /wp-admin/edit.php?post_type=atkp_shop | 2,871 | 3.32 | 54.41 | 66.59 |
Queues /wp-admin/admin.php?page=ATKP_viewqueue | 2,659 | 2.19 | 34.09 | 28.39 |
Lists /wp-admin/edit.php?post_type=atkp_list | 2,735 | 2.41 | 39.69 | 30.84 |
Settings /wp-admin/admin.php?page=ATKP_affiliate_toolkit-plugin | 2,919 | 2.39 | 37.85 | 31.05 |
Products /wp-admin/edit.php?post_type=atkp_product | 2,930 | 3.43 | 52.87 | 83.21 |
Product category /wp-admin/edit-tags.php?taxonomy=productcategory | 2,897 | 2.25 | 32.38 | 30.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_atkp_queues_entries
- wp_atkp_queues
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- theysaidso_admin_options
- atkp_version_plugin
- can_compress_scripts
- widget_recent-posts
- ATKP_version_posts_queues
- widget_atkp_widget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 43× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/affiliate-toolkit-starter/includes/helper/atkp_url_scraper.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/datasheet.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/affiliate-toolkit-cron.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/detailoffers.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/bestseller.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/variationboxes.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/grid_3_columns.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/notavailable.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/image_gallery.blade.php
- > /wp-content/plugins/affiliate-toolkit-starter/templates/blade/grid_2_columns.blade.php
- 401× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/affiliate-toolkit-starter/lib/vendor/drunomics/paapi5-php-sdk/vendor/guzzlehttp/psr7/src/CachingStream.php:10
- > 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/affiliate-toolkit-starter/includes/pages/atkp_template_table.php on line 4
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/affiliate-toolkit-starter/child-plugins/affiliate-toolkit-amazon/lib/vendor/drunomics/paapi5-php-sdk/src/com/amazon/paapi5/v1/ManufactureInfo.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/affiliate-toolkit-starter/lib/vendor/guzzlehttp/psr7/tests/DroppingStreamTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/affiliate-toolkit-starter/child-plugins/affiliate-toolkit-amazon/lib/vendor/drunomics/paapi5-php-sdk/src/com/amazon/paapi5/v1/OfferDeliveryInfo.php:30
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/affiliate-toolkit-starter/child-plugins/affiliate-toolkit-amazon/lib/vendor/guzzlehttp/promises/src/Coroutine.php:45
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/affiliate-toolkit-starter/lib/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/affiliate-toolkit-starter/child-plugins/affiliate-toolkit-amazon/lib/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/affiliate-toolkit-starter/lib/vendor/guzzlehttp/psr7/src/DroppingStream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Amazon\\ProductAdvertisingAPI\\v1\\com\\amazon\\paapi5\\v1\\ModelInterface' not found in wp-content/plugins/affiliate-toolkit-starter/child-plugins/affiliate-toolkit-amazon/lib/vendor/drunomics/paapi5-php-sdk/src/com/amazon/paapi5/v1/SingleStringValuedAttribute.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #3, #4 in affiliate-toolkit-starter/assets to your readme.txt
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
affiliate-toolkit-starter/affiliate-toolkit.php 92% from 13 tests
The main PHP script in "affiliate-toolkit – WordPress Affiliate Plugin" version 3.4.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("affiliate-toolkit-starter.php" instead of "affiliate-toolkit.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected182,537 lines of code in 1,037 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 764 | 30,903 | 60,682 | 111,878 |
JavaScript | 69 | 5,087 | 2,740 | 29,414 |
CSS | 29 | 2,374 | 229 | 11,072 |
Markdown | 30 | 2,770 | 0 | 8,797 |
PO File | 1 | 2,154 | 5,342 | 4,214 |
SVG | 14 | 4 | 8 | 3,870 |
Sass | 14 | 721 | 34 | 3,164 |
LESS | 14 | 721 | 44 | 3,154 |
HTML | 19 | 358 | 57 | 3,140 |
JSON | 28 | 0 | 0 | 2,003 |
Blade | 37 | 114 | 3 | 1,497 |
YAML | 11 | 43 | 3 | 215 |
XML | 4 | 2 | 0 | 78 |
make | 2 | 11 | 0 | 31 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 666.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 60 | |
Traits | 14 | |
Classes | 645 | |
▷ Abstract classes | 11 | 1.71% |
▷ Concrete classes | 634 | 98.29% |
▷ Final classes | 49 | 7.73% |
Methods | 8,684 | |
▷ Static methods | 1,342 | 15.45% |
▷ Public methods | 7,899 | 90.96% |
▷ Protected methods | 234 | 2.69% |
▷ Private methods | 551 | 6.35% |
Functions | 835 | |
▷ Named functions | 247 | 29.58% |
▷ Anonymous functions | 588 | 70.42% |
Constants | 1,081 | |
▷ Global constants | 295 | 27.29% |
▷ Class constants | 786 | 72.71% |
▷ Public constants | 786 | 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
38 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/vendor/imelgrat/barcode-validator/docs/images/mstile-150x150.png | 10.14KB | 4.14KB | ▼ 59.14% |
lib/vendor/imelgrat/barcode-validator/docs/images/iviewer/iviewer.zoom_fit.png | 1.22KB | 0.30KB | ▼ 75.72% |
images/logo_servit-biz.png | 6.01KB | 2.66KB | ▼ 55.73% |
lib/vendor/imelgrat/barcode-validator/docs/images/favicon-16x16.png | 1.46KB | 0.92KB | ▼ 37.41% |
lib/vendor/imelgrat/barcode-validator/docs/images/apple-touch-icon-114x114.png | 10.01KB | 4.01KB | ▼ 59.90% |