Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.26ms] Passed 4 tests
This is a short check of server-side resources used by Add to Cart Button Custom Text and Color
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 22.89 ▼20.09 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.81 ▼2.73 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.28 ▲0.38 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.84 ▲5.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.86 ▲5.41 |
WooCommerce Buttons /wp-admin/admin.php?page=woocommerce_buttons | 3.20 | 26.78 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Add to Cart Button Custom Text and Color
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲51 | 13.75 ▼0.87 | 4.16 ▲2.18 | 43.85 ▼2.62 |
Dashboard /wp-admin | 2,228 ▲40 | 6.05 ▲1.20 | 103.74 ▼14.79 | 43.13 ▼2.73 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.30 ▲0.31 | 42.10 ▲5.44 | 34.11 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.29 ▼4.98 | 588.24 ▼84.90 | 34.67 ▼17.71 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.44 ▲0.17 | 103.76 ▲3.46 | 41.46 ▼3.70 |
WooCommerce Buttons /wp-admin/admin.php?page=woocommerce_buttons | 1,165 | 2.23 | 46.41 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 11 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woocommerce_buttons
- > Notice in wp-content/plugins/add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php+141
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-to-cart-button-custom-text-and-color/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Screenshot #1 (The Admin screen for the plugin. screenshot-1.png) image not found
add-to-cart-button-custom-text-and-color/add-to-cart-button-custom-text-and-color.php 92% from 13 tests
The main PHP file in "Add to Cart Button Custom Text and Color" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected200 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 29 | 187 |
CSS | 1 | 1 | 1 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin