Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼10.75ms] Passed 4 tests
This is a short check of server-side resources used by Amazon Affiliate Buttons - Better Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.38 ▲0.11 |
Dashboard /wp-admin | 3.36 ▲0.02 | 44.40 ▼15.22 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 42.90 ▼15.84 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 82.70 ▼12.04 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.03 ▲3.42 |
Better Buttons Settings /wp-admin/options-general.php?page=betterbuttons | 3.25 | 29.95 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_betterbuttons |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Amazon Affiliate Buttons - Better Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 14.78 ▲0.48 | 2.02 ▲0.45 | 37.28 ▼1.70 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲1.03 | 95.39 ▼10.65 | 40.95 ▼1.23 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 33.26 ▼3.95 | 34.24 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▲155 | 23.22 ▲6.42 | 648.85 ▲54.91 | 62.44 ▲13.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.02 | 93.33 ▼21.19 | 42.67 ▼7.48 |
Better Buttons Settings /wp-admin/options-general.php?page=betterbuttons | 920 | 2.04 | 32.33 | 28.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_betterbuttons
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-buttons/betterbuttons-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/better-buttons/betterbuttons-shortcodes.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/better-buttons/betterbuttons.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in better-buttons/assets to your readme.txt
- Donate link: Invalid url: "paypal.me/t0mad4m"
better-buttons/betterbuttons.php 92% from 13 tests
The main PHP script in "Amazon Affiliate Buttons - Better Buttons" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("better-buttons.php" instead of "betterbuttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,470 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 2,829 |
CSS | 3 | 898 | 19 | 2,014 |
HTML | 1 | 47 | 0 | 362 |
PHP | 3 | 50 | 47 | 265 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
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.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/imgs/short-code_example1.PNG | 29.17KB | 14.40KB | ▼ 50.64% |
includes/imgs/settings-page.PNG | 24.60KB | 12.31KB | ▼ 49.98% |
includes/imgs/short-code_example2.PNG | 48.97KB | 15.54KB | ▼ 68.28% |