Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.25ms] Passed 4 tests
Analyzing server-side resources used by Disable cart page for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.29 ▲0.08 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.03 ▼0.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.70 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.89 ▼6.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.32 ▲0.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Disable cart page for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.18 | 1.87 ▲0.01 | 44.44 ▼0.45 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.03 | 92.83 ▼3.38 | 49.72 ▲9.95 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.04 | 38.99 ▼1.77 | 35.50 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.31 ▼0.38 | 601.71 ▼119.78 | 57.85 ▲6.39 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.01 | 100.05 ▼1.42 | 41.84 ▼2.88 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce, single product buy, disable cart, redirect to checkout
disable-cart-page-for-woocommerce/disable-cart-page-for-woocommerce.php 92% from 13 tests
The main PHP file in "Disable cart page for WooCommerce" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "2.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected156 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 39 | 114 |
PO File | 1 | 11 | 30 | 42 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 1 | 5.00% |
▷ Anonymous functions | 19 | 95.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin