Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼255.70ms] Passed 4 tests
Server-side resources used by AFFILIATE Solution
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.34 | 41.51 ▲16.40 |
Dashboard /wp-admin | 3.29 ▲0.24 | 52.18 ▲6.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 55.72 ▲14.62 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.22 | 102.70 ▼1,045.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 41.80 ▲1.48 |
Add Store /wp-admin/post-new.php?post_type=store | 3.36 | 55.82 |
Add Offer /wp-admin/post-new.php?post_type=offer | 3.44 | 59.11 |
Affiliate Solution /wp-admin/options-general.php?page=essitco_manage_channels | 3.20 | 39.20 |
Store Category /wp-admin/edit-tags.php?taxonomy=store_category&post_type=store | 3.23 | 39.69 |
Offer Category /wp-admin/edit-tags.php?taxonomy=offer_category&post_type=offer | 3.23 | 39.94 |
Stores /wp-admin/edit.php?post_type=store | 3.27 | 44.98 |
Offers /wp-admin/edit.php?post_type=offer | 3.27 | 40.83 |
Server storage [IO: ▲0.20MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_essitco_ams_offer_widget |
widget_essitco_ams_store_widget |
Browser metrics Passed 4 tests
Checking browser requirements for AFFILIATE Solution
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,779 ▲173 | 15.98 ▲0.53 | 11.81 ▲0.22 | 74.51 ▲27.20 |
Dashboard /wp-admin | 3,043 ▲190 | 5.96 ▼0.08 | 136.22 ▲6.49 | 101.40 ▼5.83 |
Posts /wp-admin/edit.php | 2,793 ▲87 | 2.70 ▼0.00 | 68.28 ▲3.21 | 84.70 ▼15.16 |
Add New Post /wp-admin/post-new.php | 1,710 ▲122 | 18.79 ▼3.16 | 357.83 ▲84.54 | 107.13 ▲3.92 |
Media Library /wp-admin/upload.php | 1,859 ▲87 | 5.01 ▲0.02 | 153.13 ▲8.08 | 116.48 ▼6.44 |
Add Store /wp-admin/post-new.php?post_type=store | 3,318 | 9.05 | 223.36 | 135.41 |
Add Offer /wp-admin/post-new.php?post_type=offer | 3,649 | 8.93 | 237.24 | 123.54 |
Affiliate Solution /wp-admin/options-general.php?page=essitco_manage_channels | 1,200 | 2.09 | 60.27 | 75.33 |
Store Category /wp-admin/edit-tags.php?taxonomy=store_category&post_type=store | 1,791 | 2.51 | 60.56 | 67.85 |
Offer Category /wp-admin/edit-tags.php?taxonomy=offer_category&post_type=offer | 1,788 | 2.49 | 61.73 | 66.02 |
Stores /wp-admin/edit.php?post_type=store | 1,513 | 2.64 | 62.12 | 71.02 |
Offers /wp-admin/edit.php?post_type=offer | 1,508 | 2.63 | 63.36 | 68.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 2 options
- widget_essitco_ams_offer_widget
- widget_essitco_ams_store_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliate-solution/affiliate-solution.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/affiliate-solution/templates/single-store.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/affiliate-solution/admin/features.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/affiliate-solution/templates/archive-offer.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliate-solution/admin/AMS_Widget.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/affiliate-solution/templates/offer-loop.php:1
- > PHP Notice
Undefined variable: offers in wp-content/plugins/affiliate-solution/templates/offer-loop.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/affiliate-solution/templates/archive-store.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliate-solution/admin/AMS_shortcodes.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
affiliate-solution/affiliate-solution.php Passed 13 tests
This is the main PHP file of "AFFILIATE Solution" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Affiliate Solution for Commission Junction, Linkshare, Vglink
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,533 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 109 | 20 | 1,220 |
CSS | 3 | 4 | 4 | 311 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin