Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.66ms] Passed 4 tests
A check of server-side resources used by AffiliateWP - Order Details For Affiliates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.50 ▼3.67 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.00 ▼5.56 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 44.42 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.09 ▼4.59 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.98 ▲1.42 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - Order Details For Affiliates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲68 | 13.22 ▼1.15 | 1.75 ▼0.04 | 42.91 ▲0.47 |
Dashboard /wp-admin | 2,212 ▲24 | 5.84 ▲0.02 | 102.65 ▼12.92 | 39.14 ▼10.18 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.05 | 37.26 ▲0.92 | 33.34 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▲0.20 | 654.92 ▼31.99 | 64.75 ▲13.56 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.13 ▼0.06 | 113.77 ▲6.36 | 46.79 ▲1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliatewp-order-details-for-affiliates/includes/class-admin.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-order-details-for-affiliates/includes/class-shortcodes.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function affiliatewp_order_details_for_affiliates() in wp-content/plugins/affiliatewp-order-details-for-affiliates/templates/dashboard-tab-order-details.php:9
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
affiliatewp-order-details-for-affiliates/affiliatewp-order-details-for-affiliates.php Passed 13 tests
The principal PHP file in "AffiliateWP - Order Details For Affiliates" v. 1.3 is loaded by WordPress automatically on each request
73 characters long description:
Share customer purchase information with the affiliate who referred them.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,562 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 437 | 1,294 | 1,301 |
PO File | 2 | 86 | 101 | 261 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 1 | 12.50% |
Methods | 99 | |
▷ Static methods | 1 | 1.01% |
▷ Public methods | 59 | 59.60% |
▷ Protected methods | 22 | 22.22% |
▷ Private methods | 18 | 18.18% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin