Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼4.91ms] Passed 4 tests
Server-side resources used by Remove Add to Cart WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 46.53 ▲0.30 |
Dashboard /wp-admin | 3.91 ▲0.57 | 57.25 ▼12.59 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 52.78 ▲4.49 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.57 | 96.00 ▼10.36 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 40.57 ▲3.03 |
Remove Cart & Hide Price /wp-admin/admin.php?page=remove-add-to-cart-woocommerce | 3.92 | 40.32 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.04 | 40.19 |
Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 196 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
fs_gdpr |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for Remove Add to Cart WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.36 ▼0.02 | 1.76 ▼0.11 | 32.00 ▼10.97 |
Dashboard /wp-admin | 2,239 ▲59 | 4.92 ▼0.68 | 90.90 ▼4.18 | 43.44 ▲6.02 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 2.43 ▲0.42 | 40.58 ▲2.60 | 37.82 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.34 ▲4.82 | 641.14 ▼27.44 | 52.92 ▼11.44 |
Media Library /wp-admin/upload.php | 1,438 ▲38 | 4.56 ▲0.36 | 101.87 ▼0.13 | 45.88 ▲0.01 |
Remove Cart & Hide Price /wp-admin/admin.php?page=remove-add-to-cart-woocommerce | 988 | 1.89 | 25.01 | 53.06 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,084 | 2.06 | 32.85 | 31.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/remove-add-to-cart-woocommerce/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- widget_theysaidso_widget
- fs_debug_mode
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- fs_gdpr
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/remove-add-to-cart-woocommerce/ratcwp-hide-price.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: woocommerce, remove button, add to cart
remove-add-to-cart-woocommerce/index.php 77% from 13 tests
The entry point to "Remove Add to Cart WooCommerce" version 1.4.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "4.6")
- Main file name: Name the main plugin file the same as the plugin slug ("remove-add-to-cart-woocommerce.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 230 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected51,750 lines of code in 144 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,322 | 17,265 | 34,026 |
JavaScript | 7 | 3,535 | 1,900 | 17,066 |
CSS | 15 | 23 | 0 | 444 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 89.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.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 | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,268 | |
▷ Static methods | 192 | 15.14% |
▷ Public methods | 886 | 69.87% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 365 | 28.79% |
Functions | 114 | |
▷ Named functions | 114 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.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
9 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 201.71KB | 78.36KB | ▼ 61.15% |
assets/images/addify-logo.png | 7.65KB | 4.84KB | ▼ 36.75% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/images/small_logo_white.png | 2.51KB | 0.89KB | ▼ 64.68% |
screenshot-1.png | 44.60KB | 20.62KB | ▼ 53.76% |