Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.01ms] Passed 4 tests
An overview of server-side resources used by WordPress Affiliate Program Plugin Shortcodes by AffiliateWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 36.58 ▼3.77 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.08 ▼1.77 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.53 ▲2.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 104.99 ▲4.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.74 ▲3.19 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Affiliate Program Plugin Shortcodes by AffiliateWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.24 ▼1.55 | 4.90 ▲3.11 | 37.36 ▼11.75 |
Dashboard /wp-admin | 2,209 ▲21 | 4.85 ▼0.04 | 110.21 ▲2.63 | 42.43 ▼0.04 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.00 | 40.20 ▼0.12 | 35.73 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.07 ▼0.06 | 692.45 ▲67.20 | 64.42 ▲9.40 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.03 | 96.00 ▼10.37 | 39.75 ▼4.13 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-affiliate-area-shortcodes/includes/class-shortcodes.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
affiliatewp-affiliate-area-shortcodes/affiliatewp-affiliate-area-shortcodes.php 85% from 13 tests
The main PHP file in "WordPress Affiliate Program Plugin Shortcodes by AffiliateWP" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,314 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 413 | 1,182 | 1,027 |
CSS | 1 | 33 | 0 | 179 |
SVG | 3 | 0 | 0 | 108 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.43 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 1 | 20.00% |
Methods | 99 | |
▷ Static methods | 2 | 2.02% |
▷ 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.10MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/lib/affwp/images/affwp-banner-image.png | 20.75KB | 20.76KB | 0.00% |
includes/lib/affwp/images/affwp-banner-image-2x.png | 86.74KB | 86.76KB | 0.00% |