Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▼1.06ms] Passed 4 tests
An overview of server-side resources used by Product Author for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 47.41 ▲4.46 |
Dashboard /wp-admin | 3.90 ▲0.59 | 54.88 ▲0.68 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 52.92 ▼1.26 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 95.45 ▼8.12 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 43.05 ▲5.26 |
Product Author for WooCommerce /wp-admin/admin.php?page=wc-product-author | 3.89 | 42.03 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 4.02 | 38.14 |
Server storage [IO: ▲4.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 204 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
fs_accounts |
theysaidso_admin_options |
fs_debug_mode |
fs_active_plugins |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Author for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.22 ▼0.13 | 1.98 ▲0.33 | 33.92 ▼5.56 |
Dashboard /wp-admin | 2,209 ▲28 | 5.57 ▼0.11 | 92.95 ▼6.10 | 43.97 ▲2.22 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.10 ▲0.11 | 37.02 ▼3.57 | 36.00 ▼3.74 |
Add New Post /wp-admin/post-new.php | 1,534 ▼3 | 23.64 ▲5.48 | 635.24 ▲15.18 | 57.46 ▼6.76 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.13 ▼0.10 | 96.61 ▼18.27 | 47.78 ▼0.69 |
Product Author for WooCommerce /wp-admin/admin.php?page=wc-product-author | 977 | 1.68 | 25.94 | 60.06 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,069 | 1.70 | 24.02 | 28.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wc-product-author/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
- fs_accounts
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wc-product-author/assets to your readme.txt
wc-product-author/wc-product-author.php 92% from 13 tests
The main file in "Product Author for WooCommerce" v. 1.0.5 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:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin50,659 lines of code in 153 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 121 | 8,049 | 17,548 | 33,665 |
PO File | 13 | 7,450 | 9,057 | 16,530 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 91.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,278 | |
▷ Static methods | 199 | 15.57% |
▷ Public methods | 886 | 69.33% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 375 | 29.34% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wc-place-order-without-payment.png | 7.50KB | 4.32KB | ▼ 42.41% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wc-thanks-redirect.png | 6.32KB | 3.32KB | ▼ 47.43% |
freemius/assets/img/wc-product-author.png | 19.73KB | 7.58KB | ▼ 61.59% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |