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.07MB] [CPU: ▼3.05ms] Passed 4 tests
A check of server-side resources used by WooCommerce Custom Availability
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.50 ▼4.10 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.24 ▼7.12 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.93 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.81 ▲0.90 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.72 ▲3.30 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Custom Availability
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.74 ▲0.36 | 1.78 ▲0.10 | 49.02 ▲1.97 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▼0.04 | 111.86 ▼3.56 | 42.74 ▼2.88 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 33.78 ▼5.94 | 33.65 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▲5.51 | 582.97 ▼117.48 | 51.66 ▼6.39 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.20 ▼0.11 | 98.63 ▼7.26 | 40.49 ▼5.45 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- 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
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-availability-for-woocommerce/includes/class-woocommerce-custom-availability-tab.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: woocommerce, availability, custom
custom-availability-for-woocommerce/woocommerce-custom-availability.php 85% from 13 tests
This is the main PHP file of "WooCommerce Custom Availability" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-availability-for-woocommerce.php" instead of "woocommerce-custom-availability.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin774 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 131 | 268 | 648 |
XML | 1 | 31 | 50 | 51 |
PO File | 1 | 7 | 10 | 33 |
Markdown | 1 | 14 | 0 | 28 |
JSON | 2 | 0 | 0 | 14 |
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.42 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 4 | 8.16% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.56MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 147.85KB | 44.76KB | ▼ 69.73% |
assets/icon-512x512.png | 29.00KB | 15.20KB | ▼ 47.60% |
assets/screenshot-2.png | 228.78KB | 64.68KB | ▼ 71.73% |
assets/banner-772x250.png | 36.80KB | 17.21KB | ▼ 53.22% |
assets/banner-1544x500.png | 65.53KB | 27.59KB | ▼ 57.89% |