Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/remove-add-to-cart-button-for-woocommerce/includes/freemius/require.php+16
require_once(wp-content/plugins/remove-add-to-cart-button-for-woocommerce/includes/freemius/includes/fs-html-escaping-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.79ms] Passed 4 tests
An overview of server-side resources used by Remove Add to Cart Button for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.94 ▼1.33 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.75 ▼16.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.42 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.59 ▼18.97 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.65 ▲2.06 |
Server storage [IO: ▲4.14MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
fs_active_plugins |
widget_theysaidso_widget |
fs_debug_mode |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Remove Add to Cart Button for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.15 | 1.65 ▼0.03 | 46.45 ▲2.44 |
Dashboard /wp-admin | 2,198 ▲27 | 5.58 ▼0.02 | 94.27 ▼8.77 | 41.99 ▲0.37 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.03 | 33.40 ▼1.63 | 35.58 ▼0.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.08 ▲4.81 | 686.31 ▲53.11 | 53.46 ▼9.46 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.02 | 92.83 ▼0.53 | 43.15 ▲2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- fs_active_plugins
- fs_debug_mode
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
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 83% from 29 tests
readme.txt 88% 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
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Please fix this invalid url: "#"
remove-add-to-cart-button-for-woocommerce/remove-add-to-cart-button-woocommerce.php 77% from 13 tests
The main PHP file in "Remove Add to Cart Button for WooCommerce" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-add-to-cart-button-for-woocommerce.php" instead of "remove-add-to-cart-button-woocommerce.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected32,242 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 7,523 | 17,001 | 31,695 |
JavaScript | 4 | 50 | 86 | 248 |
Markdown | 1 | 68 | 0 | 214 |
CSS | 12 | 1 | 4 | 58 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 83.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,203 | |
▷ Static methods | 195 | 16.21% |
▷ Public methods | 833 | 69.24% |
▷ Protected methods | 15 | 1.25% |
▷ Private methods | 355 | 29.51% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 131 | |
▷ Global constants | 99 | 75.57% |
▷ Class constants | 32 | 24.43% |
▷ Public constants | 32 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.18MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 120.74KB | 47.99KB | ▼ 60.25% |
assets/screenshot-4.png | 116.29KB | 47.57KB | ▼ 59.09% |
assets/screenshot-1.png | 137.12KB | 50.72KB | ▼ 63.01% |
includes/freemius/assets/img/remove-add-to-cart-button-for-woocommerce.png | 8.62KB | 3.44KB | ▼ 60.10% |
assets/screenshot-5.png | 68.09KB | 34.24KB | ▼ 49.71% |