Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼9.29ms] Passed 4 tests
A check of server-side resources used by Hide Cart Functions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 38.03 ▼0.36 |
Dashboard /wp-admin | 3.63 ▲0.28 | 44.87 ▼17.63 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 44.31 ▲4.80 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 81.56 ▼20.05 |
Media Library /wp-admin/upload.php | 3.56 ▲0.32 | 37.07 ▲0.87 |
Hide Functions /wp-admin/admin.php?page=hwcf_settings | 3.53 | 33.22 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
hwcf_settings_data |
widget_theysaidso_widget |
pcfw_version_1_0_0_installed |
pcfw_notice_dismiss |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Hide Cart Functions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.43 ▲0.09 | 1.70 ▲0.03 | 40.28 ▼2.41 |
Dashboard /wp-admin | 2,207 ▲30 | 4.91 ▼0.76 | 85.86 ▼14.31 | 38.88 ▼8.61 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.33 ▲0.30 | 34.27 ▼2.09 | 33.38 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.15 ▲0.16 | 667.10 ▲17.37 | 57.04 ▼1.81 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.42 ▲0.26 | 95.32 ▼18.17 | 45.06 ▼3.26 |
Hide Functions /wp-admin/admin.php?page=hwcf_settings | 1,065 | 1.85 | 28.51 | 28.07 |
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
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- pcfw_notice_dismiss
- hwcf_settings_data
- pcfw_version_1_0_0_installed
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means 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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hide-cart-functions/admin/hwcf-table.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hide-cart-functions/admin/hwcf-table.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function Artiosmedia\\WC_Purchase_Customization_Admin\\is_admin() in wp-content/plugins/hide-cart-functions/admin/hwcf-admin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-cart-functions/inc/utilities-functions.php:112
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hide-cart-functions/admin/hwcf-table.php on line 3
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: hide category, hide product, hide price, hide add to cart, hide option...
hide-cart-functions/hide-cart-functions.php 85% from 13 tests
"Hide Cart Functions" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 238 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,884 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 279 | 400 | 1,253 |
PO File | 4 | 283 | 336 | 762 |
JavaScript | 3 | 167 | 32 | 595 |
CSS | 3 | 36 | 4 | 274 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 5 | 10.87% |
▷ Public methods | 35 | 76.09% |
▷ Protected methods | 11 | 23.91% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 13 | 81.25% |
▷ Anonymous functions | 3 | 18.75% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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