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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.60ms] Passed 4 tests
Analyzing server-side resources used by Customize Checkout and Buttons for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.34 ▲2.93 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.57 ▼0.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.10 ▼5.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 97.06 ▲2.90 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.81 ▲0.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customize Checkout and Buttons for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.31 ▼0.04 | 1.64 ▲0.05 | 40.70 ▼2.42 |
Dashboard /wp-admin | 2,205 ▲25 | 5.54 ▲0.02 | 88.16 ▼7.47 | 38.81 ▼5.08 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.00 | 39.57 ▲0.29 | 35.90 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,539 ▲12 | 23.38 ▲0.15 | 605.61 ▼39.70 | 58.72 ▲0.46 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.18 ▼0.03 | 98.66 ▼8.91 | 43.09 ▼4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/customize-checkout-and-buttons-for-woocommerce/customize-woocommerce-checkout.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customize-checkout-and-buttons-for-woocommerce/functions.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Customize checkout fields), #2 (Customize free and virtual products fields), #3 (Customize button text), #4 (Customized Shop Page), #5 (Customized My Account Page)
customize-checkout-and-buttons-for-woocommerce/customize-woocommerce-checkout.php 69% from 13 tests
The principal PHP file in "Customize Checkout and Buttons for WooCommerce" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("5.5" instead of "5.4")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("customize-checkout-and-buttons-for-woocommerce.php" instead of "customize-woocommerce-checkout.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.8")
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin666 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 124 | 98 | 601 |
CSS | 1 | 13 | 0 | 65 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin