Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.02ms] Passed 4 tests
A check of server-side resources used by Add to Cart Text Changer and Customize Button, Add Custom Icon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.07 ▼5.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.66 ▼4.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.23 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.71 ▼6.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.90 ▼3.92 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Add to Cart Text Changer and Customize Button, Add Custom Icon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 13.27 ▼1.39 | 1.59 ▲0.01 | 37.13 ▼9.40 |
Dashboard /wp-admin | 2,222 ▲31 | 4.85 ▼0.24 | 109.32 ▲8.81 | 43.28 ▼0.41 |
Posts /wp-admin/edit.php | 2,107 ▲15 | 2.01 ▼0.04 | 42.29 ▼1.66 | 42.00 ▲6.67 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 18.35 ▼4.67 | 617.49 ▼36.76 | 56.27 ▼1.71 |
Media Library /wp-admin/upload.php | 1,410 ▲28 | 4.24 ▼0.01 | 99.49 ▼0.72 | 44.12 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-add-to-cart-text-change/index.php
- > /wp-content/plugins/woo-add-to-cart-text-change/includes/add_to_cart_front.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-add-to-cart-text-change/admin/plugin_setting_link.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-add-to-cart-text-change/admin/menu.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in woo-add-to-cart-text-change/assets to your readme.txt
woo-add-to-cart-text-change/index.php 62% from 13 tests
The primary PHP file in "Add to Cart Text Changer and Customize Button, Add Custom Icon" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "4.0.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 283 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-add-to-cart-text-change.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin247 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 45 | 115 | 239 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 2 | 100.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blue.png | 0.58KB | 0.42KB | ▼ 27.10% |
images/default.png | 4.37KB | 1.49KB | ▼ 66.04% |
images/rate_us.png | 45.85KB | 19.09KB | ▼ 58.35% |
images/add_cart_red_black.png | 0.58KB | 0.53KB | ▼ 8.94% |
images/orrange.png | 0.63KB | 0.60KB | ▼ 5.69% |