Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.98ms] Passed 4 tests
This is a short check of server-side resources used by Easy Affiliate Products
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.70 ▼0.97 |
Dashboard /wp-admin | 3.40 ▲0.10 | 42.74 ▼8.72 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.46 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 95.59 ▲3.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.21 ▲5.47 |
Easy Affiliate Products /wp-admin/admin.php?page=eap-options | 3.30 | 34.25 |
About /wp-admin/admin.php?page=eap-option-about | 3.29 | 30.22 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Affiliate Products
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.18 ▼1.17 | 1.59 ▼0.15 | 39.60 ▼6.15 |
Dashboard /wp-admin | 2,235 ▲47 | 5.85 ▲0.94 | 98.17 ▼16.44 | 77.88 ▲34.15 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.00 ▼0.05 | 39.53 ▲1.02 | 34.72 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.23 ▲4.85 | 693.29 ▲48.80 | 70.70 ▲4.33 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.18 ▲0.00 | 99.20 ▲5.93 | 73.09 ▲33.72 |
Easy Affiliate Products /wp-admin/admin.php?page=eap-options | 1,058 | 2.08 | 24.35 | 29.52 |
About /wp-admin/admin.php?page=eap-option-about | 791 | 2.01 | 23.39 | 26.76 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-affiliate-products/easy-affiliate-products.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: products, 90, shortcake, cookie, add to cart...
easy-affiliate-products/easy-affiliate-products.php Passed 13 tests
Analyzing the main PHP file in "Easy Affiliate Products" version 1.1.0
32 characters long description:
Add Amazon Products in your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin648 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 16 | 491 |
CSS | 1 | 29 | 0 | 152 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 52.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 47.06% |
Functions | 13 | |
▷ Named functions | 13 | 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 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.33MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/example02.png | 170.39KB | 45.75KB | ▼ 73.15% |
assets/icon.png | 0.63KB | 0.35KB | ▼ 44.68% |
assets/example01.png | 165.30KB | 33.94KB | ▼ 79.47% |