Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼10.77ms] Passed 4 tests
An overview of server-side resources used by Garber Buy Now Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 18.43 ▼21.27 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.89 ▼2.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.66 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 79.61 ▼17.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.87 ▲4.71 |
GBI Buy Now /wp-admin/admin.php?page=gbi-buy-now | 3.24 | 29.00 |
Options /wp-admin/admin.php?page=gbi-options | 3.25 | 30.73 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Garber Buy Now Button: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,479 ▼267 | 13.17 ▼1.58 | 0.64 ▼1.16 | 20.56 ▼22.07 |
Dashboard /wp-admin | 2,229 ▲41 | 5.80 ▲0.77 | 95.38 ▼19.30 | 36.99 ▼10.22 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▲0.01 | 33.97 ▼3.19 | 33.93 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.18 ▲0.02 | 665.38 ▼23.53 | 64.57 ▲13.25 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.09 ▼0.10 | 94.35 ▼7.90 | 43.10 ▼4.19 |
GBI Buy Now /wp-admin/admin.php?page=gbi-buy-now | 787 | 2.02 | 22.44 | 21.91 |
Options /wp-admin/admin.php?page=gbi-options | 822 | 2.03 | 24.10 | 21.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=gbi-options
- > Notice in wp-content/plugins/gbi-buy-now/admin/options.php+7
Undefined index: titulo_boton
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/gbi-buy-now/gbi_buy_now.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gbi-buy-now/admin/options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gbi-buy-now/funciones/hooks.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gbi-buy-now/funciones/funciones.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gbi-buy-now/includes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gbi-buy-now/admin/admin.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gbi-buy-now/scripts.php:7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Contributors: The plugin contributors field is not present
gbi-buy-now/gbi_buy_now.php 85% from 13 tests
The principal PHP file in "Garber Buy Now Button" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gbi-buy-now.php" instead of "gbi_buy_now.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
There were no executable files found in this plugin212 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 31 | 13 | 131 |
PO File | 1 | 11 | 12 | 38 |
JavaScript | 1 | 3 | 0 | 27 |
CSS | 1 | 1 | 0 | 16 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin