Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/bestazon/BestAzon.php+16
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.65ms] Passed 4 tests
A check of server-side resources used by Amazon Link Localization by BestAzon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.23 ▲0.79 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.17 ▼3.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 49.75 ▲7.49 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.86 ▼19.02 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.67 ▼0.92 |
BestAzon /wp-admin/options-general.php?page=BestAzon | 3.28 | 30.44 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Amazon Link Localization by BestAzon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲274 | 14.05 ▼0.63 | 206.07 ▲203.85 | 41.89 ▼1.80 |
Dashboard /wp-admin | 2,236 ▲44 | 5.87 ▲0.86 | 108.41 ▼2.03 | 42.74 ▼0.23 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.04 ▲0.02 | 42.09 ▼4.39 | 38.20 ▲4.19 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.05 ▲4.99 | 666.61 ▲42.42 | 57.72 ▼6.02 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.23 ▲0.03 | 101.85 ▼0.84 | 45.35 ▲2.69 |
BestAzon /wp-admin/options-general.php?page=BestAzon | 1,189 | 2.97 | 81.34 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/bestazon/BestAzon.php+24
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 42 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=BestAzon
- > Notice in wp-content/plugins/bestazon/BestAzon.php+258
Trying to access array offset on value of type bool
- 16 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=BestAzon
- > Notice in wp-content/plugins/bestazon/BestAzon.php+252
Undefined index: defaultvalue
- 17 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=BestAzon
- > Notice in wp-content/plugins/bestazon/BestAzon.php+373
Undefined index: supplemental
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=BestAzon
- > Notice in wp-content/plugins/bestazon/BestAzon.php+369
Undefined index: helper
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bestazon/BestAzon.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
- Donate link: Invalid url: ""
- Screenshots: A description for screenshot #5 is missing in bestazon/assets to your readme.txt
bestazon/BestAzon.php 85% from 13 tests
The main file in "Amazon Link Localization by BestAzon" v. 5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 233 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bestazon.php" instead of "BestAzon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin579 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 25 | 497 |
CSS | 1 | 4 | 0 | 70 |
JavaScript | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/BestAzonLogo.png | 51.59KB | 18.90KB | ▼ 63.36% |