Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼290.45ms] Passed 4 tests
A check of server-side resources used by Awesome blocks for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.01 | 56.99 ▲4.37 |
Dashboard /wp-admin | 3.44 ▲0.00 | 33.51 ▼0.96 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 36.74 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.09 | 91.70 ▼1,163.52 |
Media Library /wp-admin/upload.php | 3.33 ▲0.00 | 30.63 ▲3.55 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Awesome blocks for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲53 | 16.18 ▲0.60 | 6.16 ▲0.43 | 2.55 ▲0.49 |
Dashboard /wp-admin | 2,889 ▲35 | 6.13 ▼0.16 | 127.46 ▼7.49 | 158.20 ▼3.42 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.23 ▼0.00 | 62.18 ▼0.78 | 141.24 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,672 ▼39 | 22.29 ▲1.19 | 411.66 ▼41.44 | 161.85 ▲5.45 |
Media Library /wp-admin/upload.php | 1,694 ▼4 | 5.47 ▼0.06 | 158.46 ▲5.07 | 192.30 ▼6.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in woo-blocks/assets to your readme.txt
woo-blocks/jms-wooblocks.php 85% from 13 tests
Analyzing the main PHP file in "Awesome blocks for WooCommerce" version 1.0.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-blocks.php" instead of "jms-wooblocks.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin915 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 176 | 356 | 877 |
JavaScript | 13 | 6 | 61 | 23 |
JSON | 6 | 0 | 0 | 12 |
CSS | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 8 | 17.78% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 6 | 13.33% |
▷ Private methods | 1 | 2.22% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin