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.00MB] [CPU: ▼3.40ms] Passed 4 tests
Analyzing server-side resources used by Advanced Product Author For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.98 ▼2.46 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.94 ▼9.47 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.88 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.91 ▼2.76 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.23 ▲1.11 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Product Author For WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.29 ▼1.08 | 1.64 ▼0.41 | 43.66 ▼3.05 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.99 | 107.20 ▼5.59 | 38.44 ▼6.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 38.62 ▲1.10 | 34.26 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.53 ▼5.73 | 692.55 ▼25.16 | 59.43 ▼11.36 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.18 ▼0.08 | 95.20 ▼4.58 | 40.94 ▼2.89 |
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
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add a description for screenshot #2 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
Analyzing the main PHP file in "Advanced Product Author For WooCommerce" version 1.0.1
Please make the necessary changes and fix the following:
- 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
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-product-author-for-woocommeerce.php" instead of "advanced-product-author-for-woocommerce.php")
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
Everything looks great! No dangerous 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
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
All PNG images should be compressed to minimize bandwidth usage for end users
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/woo-icons.png | 1.25KB | 1.21KB | ▼ 3.21% |
images/woo-icon.png | 0.99KB | 0.68KB | ▼ 31.14% |
admin/images/help.png | 0.30KB | 0.32KB | 0.00% |
images/banner-772x250.png | 34.10KB | 12.27KB | ▼ 64.03% |
admin/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |