Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼17.15ms] Passed 4 tests
This is a short check of server-side resources used by i2 AZON
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 41.21 ▼2.29 |
Dashboard /wp-admin | 3.81 ▲0.46 | 47.37 ▼11.05 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 48.33 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.48 ▼0.40 | 56.02 ▼53.03 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 38.08 ▲2.90 |
Images /wp-admin/edit.php?post_type=i2_azon_image | 3.71 | 38.19 |
Setting /wp-admin/admin.php?page=i2_azon_setting_page | 3.64 | 30.60 |
Product Box /wp-admin/edit.php?post_type=i2_azon_product_box | 3.71 | 36.77 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_i2_azon_items |
New WordPress options |
---|
i2_azon_db_version |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for i2 AZON
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲68 | 14.72 ▲0.44 | 1.55 ▲0.02 | 44.62 ▲0.09 |
Dashboard /wp-admin | 2,219 ▲42 | 5.58 ▼0.05 | 91.53 ▲0.99 | 41.20 ▼1.44 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 1.96 ▼0.07 | 38.90 ▼0.86 | 37.15 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 19.04 ▼4.60 | 916.88 ▲249.86 | 52.92 ▲0.37 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.13 ▼0.04 | 106.80 ▼15.89 | 45.51 ▼5.15 |
Images /wp-admin/edit.php?post_type=i2_azon_image | 1,099 | 1.97 | 31.85 | 41.43 |
Setting /wp-admin/admin.php?page=i2_azon_setting_page | 1,075 | 2.18 | 23.69 | 24.96 |
Product Box /wp-admin/edit.php?post_type=i2_azon_product_box | 1,099 | 1.92 | 30.93 | 33.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_i2_azon_items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- i2_azon_db_version
- can_compress_scripts
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/i2-azon/include/register-post-types.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i2-azon/include/rest-api.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in i2-azon/assets to your readme.txt
i2-azon/i2-azon.php 92% from 13 tests
"i2 AZON" version 0.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,871 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 316 | 213 | 1,856 |
SVG | 3 | 0 | 1 | 10 |
JavaScript | 2 | 0 | 6 | 3 |
CSS | 2 | 4 | 8 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 30.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 2 | 2.78% |
▷ Public methods | 60 | 83.33% |
▷ Protected methods | 3 | 4.17% |
▷ Private methods | 9 | 12.50% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/5-stars-80.png | 1.29KB | 1.18KB | ▼ 8.42% |
dist/images/5-stars-gray-80.png | 1.32KB | 1.18KB | ▼ 10.64% |
dist/images/a-prime-60.png | 1.33KB | 1.27KB | ▼ 4.26% |
dist/images/a-fulfillment-60.png | 3.08KB | 1.70KB | ▼ 44.76% |