Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼13.43ms] Passed 4 tests
Server-side resources used by Simple Customization of Add to Cart Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.62 ▼10.34 |
Dashboard /wp-admin | 3.36 ▲0.01 | 43.56 ▼38.08 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.12 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.53 ▼5.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.39 ▲3.81 |
Woo Cart Customizer /wp-admin/admin.php?page=woo-cart-customizer | 3.24 | 29.18 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Customization of Add to Cart Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.24 ▼0.09 | 1.72 ▲0.13 | 38.50 ▼5.69 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.04 | 92.53 ▼10.34 | 41.28 ▼0.85 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 39.86 ▲2.16 | 36.61 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.19 ▼2.31 | 608.71 ▼40.01 | 42.90 ▼24.83 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.15 ▼0.03 | 95.72 ▼2.25 | 42.70 ▼0.24 |
Woo Cart Customizer /wp-admin/admin.php?page=woo-cart-customizer | 1,751 | 1.98 | 25.19 | 27.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-cart-customizer/includes/plugin-setting-page.php
- > /wp-content/plugins/woo-cart-customizer/includes/admin.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/woo-cart-customizer/woo_cart_customizer_class.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: custom button, custom button text, custom message and notices, custom shop, cart...
woo-cart-customizer/woo_cart_customizer.php 77% from 13 tests
"Simple Customization of Add to Cart Button" version 2.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-cart-customizer.php" instead of "woo_cart_customizer.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 157 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
Success! There were no dangerous files found in this plugin1,038 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 1 | 4 | 687 |
PHP | 4 | 41 | 98 | 284 |
CSS | 3 | 20 | 17 | 67 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wewp-ad-plugin-400.png | 15.32KB | 8.89KB | ▼ 42.00% |
assets/images/wewp-logo.png | 39.91KB | 20.18KB | ▼ 49.44% |
assets/images/stickybelt.png | 19.91KB | 8.01KB | ▼ 59.75% |
assets/images/popupbox.png | 17.85KB | 7.15KB | ▼ 59.92% |
assets/images/icon.png | 0.31KB | 0.23KB | ▼ 23.32% |