Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.22ms] Passed 4 tests
This is a short check of server-side resources used by Custom Menu for WooCommerce My Account
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 39.58 ▼1.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.17 ▼4.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.87 ▲1.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.60 ▼12.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.87 ▲2.74 |
Add Account Menu /wp-admin/admin.php?page=WACM_add_menu_page | 3.23 | 29.14 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Menu for WooCommerce My Account
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.74 ▲0.11 | 2.12 ▲0.32 | 43.96 ▼4.48 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▼0.02 | 103.41 ▼3.39 | 37.03 ▼1.67 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.05 ▲0.04 | 35.94 ▼1.33 | 31.38 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▼5 | 23.25 ▲0.07 | 682.02 ▲50.03 | 55.22 ▼8.66 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.03 | 95.03 ▼5.80 | 42.73 ▼2.58 |
Add Account Menu /wp-admin/admin.php?page=WACM_add_menu_page | 840 | 2.03 | 33.40 | 27.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WACM_add_menu_page
- > Notice in wp-content/plugins/custom-menu-for-wc-my-account/templates/add_menu_template.php+37
Trying to access array offset on value of type int
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/custom-menu-for-wc-my-account/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: custom my account, pages, add my account, woocommerce
custom-menu-for-wc-my-account/index.php 85% from 13 tests
The entry point to "Custom Menu for WooCommerce My Account" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("5.5" instead of "5.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-menu-for-wc-my-account.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected336 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 66 | 25 | 175 |
CSS | 1 | 18 | 0 | 143 |
JavaScript | 1 | 3 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected