Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.12ms] Passed 4 tests
Analyzing server-side resources used by AffiliateWP - Allowed Products
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.58 ▲1.26 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.93 ▼14.48 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.53 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.52 ▼10.65 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.50 ▼3.14 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by AffiliateWP - Allowed Products
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.36 ▲0.01 | 1.86 ▲0.13 | 40.40 ▼2.15 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.02 | 84.74 ▼12.24 | 41.05 ▼20.15 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.95 ▼0.06 | 35.64 ▼4.67 | 38.57 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.18 ▲0.16 | 668.30 ▼64.50 | 53.77 ▲5.52 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.15 ▼0.10 | 107.42 ▼0.92 | 46.32 ▼1.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
affiliatewp-allowed-products/affiliatewp-allowed-products.php Passed 13 tests
This is the main PHP file of "AffiliateWP - Allowed Products" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
Allows only specific products to generate commission
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin763 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 262 | 1,045 | 733 |
Markdown | 1 | 20 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 1 | 25.00% |
Methods | 72 | |
▷ Static methods | 2 | 2.78% |
▷ Public methods | 33 | 45.83% |
▷ Protected methods | 22 | 30.56% |
▷ Private methods | 17 | 23.61% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin