Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/woo-button-text/woo-button-option.php+285
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼50.60ms] Passed 4 tests
This is a short check of server-side resources used by Woo Button Text
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.25 ▼38.81 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.52 ▼40.81 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.88 ▼40.72 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.58 ▼82.06 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.34 ▼29.65 |
Exclutips Settings /wp-admin/admin.php?page=exclutips-settings | 2.12 | 5.90 |
Woo Button Text /wp-admin/admin.php?page=exclutips-woo-button-options | 2.12 | 6.17 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Woo Button Text
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.75 ▼0.60 | 1.66 ▲0.04 | 43.48 ▲3.03 |
Dashboard /wp-admin | 2,250 ▲62 | 5.04 ▲0.18 | 114.48 ▲12.48 | 74.51 ▲32.59 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.31 ▲0.32 | 41.89 ▲6.98 | 36.55 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,705 ▲163 | 21.37 ▲2.92 | 761.64 ▲133.91 | 38.70 ▼14.48 |
Media Library /wp-admin/upload.php | 1,432 ▲44 | 4.45 ▲0.18 | 100.50 ▼0.22 | 78.92 ▲31.71 |
Exclutips Settings /wp-admin/admin.php?page=exclutips-settings | 871 | 3.10 | 70.12 | 27.06 |
Woo Button Text /wp-admin/admin.php?page=exclutips-woo-button-options | 878 | 1.88 | 27.48 | 30.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/woo-button-text/woo-button-option.php+285
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Deprecated in wp-content/plugins/woo-button-text/woo-button-option.php+285
Function create_function() is deprecated
- 2986 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Notice in wp-content/plugins/woo-button-text/inc/add-filters.php+59
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Notice in wp-content/plugins/woo-button-text/woo-button-option.php+169
Undefined index: exclutips_archive_add_to_cart
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Notice in wp-content/plugins/woo-button-text/woo-button-option.php+175
Undefined index: exclutips_single_add_to_cart
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Notice in wp-content/plugins/woo-button-text/woo-button-option.php+181
Undefined index: exclutips_old_add_to_cart
- > GET request to /wp-admin/admin.php?page=exclutips-woo-button-options
- > Notice in wp-content/plugins/woo-button-text/woo-button-option.php+187
Undefined index: exclutips_place_order
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
Please take a closer look at the following
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-button-text/woo-button-text.php
- > /wp-content/plugins/woo-button-text/styles/woobuttonstyle.php
- > /wp-content/plugins/woo-button-text/inc/add-filters.php
- > /wp-content/plugins/woo-button-text/inc/dashboard.php
- > /wp-content/plugins/woo-button-text/woo-button-option.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-button-text/exclutips-option.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-button-text/woo-button-text.php Passed 13 tests
The primary PHP file in "Woo Button Text" version 6.0.3 is used by WordPress to initiate all plugin functionality
57 characters long description:
WooCommerce Button text changer with Button Color styler.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin357 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 65 | 118 | 354 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An short overview of 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.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.41MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 44.72KB | 19.78KB | ▼ 55.76% |
Screenshot-1.png | 43.64KB | 19.66KB | ▼ 54.95% |
Screenshot-4.png | 27.76KB | 12.80KB | ▼ 53.90% |
Screenshot-2.png | 303.70KB | 73.69KB | ▼ 75.74% |
images/icon-location.png | 1.54KB | 0.74KB | ▼ 51.87% |