Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.04ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Address Book
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.37 ▼5.34 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.70 ▼0.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.41 ▼8.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.31 ▼13.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.25 ▲4.80 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Address Book
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.17 | 1.77 ▼0.06 | 42.05 ▼0.93 |
Dashboard /wp-admin | 2,209 ▲21 | 5.90 ▲1.03 | 98.73 ▼7.77 | 37.43 ▼5.99 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.01 | 41.26 ▲0.56 | 36.48 ▼0.85 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.40 ▼0.03 | 642.13 ▼49.22 | 50.54 ▼25.88 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.20 ▼0.00 | 98.91 ▼17.30 | 43.27 ▼5.48 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-address-book/includes/settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Manage your address book on the account page. Choose your primary billing address, shipping address, or add multiple alternative addresses.), #2 (Easily select your billing and shipping address on checkout.)
woo-address-book/woocommerce-address-book.php 92% from 13 tests
"WooCommerce Address Book" version 2.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-address-book.php" instead of "woocommerce-address-book.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,276 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 266 | 464 | 1,023 |
JavaScript | 2 | 53 | 37 | 212 |
CSS | 2 | 9 | 0 | 41 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 180.00 |
▷ Minimum class complexity | 180.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 5.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.55% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin