Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼307.70ms] Passed 4 tests
Server-side resources used by Advanced Product Author For WooCommeerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 51.91 ▼0.72 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.59 ▼0.24 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.04 ▼3.01 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 89.14 ▼1,226.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 24.41 ▲1.04 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Product Author For WooCommeerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲53 | 16.20 ▲0.26 | 5.93 ▼0.72 | 3.04 ▼0.39 |
Dashboard /wp-admin | 2,904 ▲20 | 6.37 ▼0.09 | 128.88 ▼12.88 | 164.03 ▼0.32 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.43 ▲0.00 | 61.85 ▼0.31 | 138.55 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,690 ▲29 | 22.05 ▼0.27 | 433.23 ▼9.15 | 157.75 ▼3.22 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.73 ▲0.01 | 144.65 ▼6.49 | 182.72 ▼10.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% 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: A description for screenshot #2 is missing in advanced-product-author-for-woocommeerce/assets to your readme.txt
advanced-product-author-for-woocommeerce/advanced-product-author-for-woocommerce.php 85% from 13 tests
The main file in "Advanced Product Author For WooCommeerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-product-author-for-woocommeerce.php" instead of "advanced-product-author-for-woocommerce.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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin805 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 64 | 388 | 455 |
PO File | 4 | 72 | 85 | 271 |
JavaScript | 2 | 9 | 2 | 48 |
CSS | 2 | 2 | 8 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 12.55KB | 5.80KB | ▼ 53.75% |
admin/images/help.png | 0.30KB | 0.32KB | 0.00% |
admin/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
images/woo-icon.png | 0.99KB | 0.68KB | ▼ 31.14% |
admin/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |