Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.12ms] Passed 4 tests
An overview of server-side resources used by Easy Amazon Affilate Partner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 44.65 ▼1.42 |
Dashboard /wp-admin | 3.41 ▲0.06 | 52.29 ▼20.32 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.82 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 98.89 ▲1.73 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.89 ▲3.27 |
easyAmazon /wp-admin/options-general.php?page=msar_ea | 3.30 | 36.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/easyamazon/" and "wp-content/uploads/"
- (new file) wp-content/easyAmazonCache/.empty
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_eawidgetsinglefromcache |
theysaidso_admin_options |
can_compress_scripts |
widget_eawidget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Amazon Affilate Partner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.20 ▼0.41 | 1.82 ▲0.30 | 44.36 ▲5.42 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▲0.10 | 91.97 ▼13.98 | 42.11 ▼1.99 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.00 | 40.21 ▲0.41 | 35.29 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.99 ▲2.04 | 663.33 ▼8.35 | 52.57 ▼8.58 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.12 ▼0.14 | 98.41 ▼5.72 | 43.60 ▲1.66 |
easyAmazon /wp-admin/options-general.php?page=msar_ea | 903 | 2.12 | 27.18 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_eawidget
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_eawidgetsinglefromcache
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyamazon/views/eaAuthorOption.php:1
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easyamazon/classes/eaWidgetSingleFromCache.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/easyamazon/easy-amazon.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/easyamazon/views/eaOptionsPage.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easyamazon/classes/eaWidgetSingle.php:13
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: product information, affilate, amazon
easyamazon/easy-amazon.php 85% from 13 tests
The main PHP script in "Easy Amazon Affilate Partner" version 1.10.3 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easyamazon.php" instead of "easy-amazon.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)
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,206 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 108 | 265 | 755 |
CSS | 1 | 61 | 3 | 451 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.60 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 7 | 16.67% |
▷ Public methods | 35 | 83.33% |
▷ Protected methods | 2 | 4.76% |
▷ Private methods | 5 | 11.90% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/prime.png | 3.57KB | 1.55KB | ▼ 56.53% |