Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.73ms] Passed 4 tests
Analyzing server-side resources used by Gou Manage My Account Menu - User Roles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.46 ▼4.00 |
Dashboard /wp-admin | 3.47 ▲0.17 | 45.90 ▼5.41 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 50.14 ▲0.39 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 85.95 ▼5.89 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 35.85 ▲1.16 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Gou Manage My Account Menu - User Roles
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.28 ▼0.37 | 1.67 ▼0.05 | 42.83 ▼3.25 |
Dashboard /wp-admin | 2,189 ▲12 | 5.50 ▼0.16 | 83.64 ▼17.11 | 38.04 ▼6.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 34.55 ▼4.77 | 32.43 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.03 ▲4.86 | 654.76 ▲8.33 | 66.07 ▲0.00 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.19 ▼0.04 | 100.29 ▲2.66 | 42.79 ▲2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gou-wc-account-tabs/admin/gou-woo-need-help-popup.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gou-wc-account-tabs/gou-woo-account-tabs.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/gou-wc-account-tabs/admin/gou-woo-account-tab-settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gou-wc-account-tabs/admin/gou-woo-general-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gou-wc-account-tabs/admin/gou-woo-layout-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gou-wc-account-tabs/admin/gou-woo-menus-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (29 tag instead of maximum 10)
gou-wc-account-tabs/gou-woo-account-tabs.php 77% from 13 tests
Analyzing the main PHP file in "Gou Manage My Account Menu - User Roles" version 1.0.1.6
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 238 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("gou-wc-account-tabs.php" instead of "gou-woo-account-tabs.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,259 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 910 | 73 | 1,990 |
JavaScript | 3 | 319 | 90 | 1,006 |
CSS | 2 | 71 | 45 | 263 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 142.00 |
▷ Minimum class complexity | 142.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/x.png | 1.17KB | 1.10KB | ▼ 5.84% |
admin/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
images/x.png | 1.17KB | 1.10KB | ▼ 5.84% |