Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.53MB] [CPU: ▼2.81ms] Passed 4 tests
A check of server-side resources used by Product Price History for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.59 | 39.05 ▼0.54 |
Dashboard /wp-admin | 3.89 ▲0.59 | 48.23 ▼0.97 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 51.09 ▲4.88 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 90.37 ▼12.38 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 39.11 ▲2.65 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 3.98 | 40.67 |
Server storage [IO: ▲3.45MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 217 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_pph_price_history |
wp_pph_price_alerts |
New WordPress options |
---|
fs_active_plugins |
fs_accounts |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
fs_debug_mode |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Product Price History for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 14.47 ▲0.09 | 1.63 ▼0.24 | 33.83 ▼4.46 |
Dashboard /wp-admin | 2,240 ▲48 | 5.80 ▲0.89 | 103.97 ▼7.86 | 43.55 ▲2.69 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.05 ▲0.04 | 39.92 ▲2.22 | 39.40 ▲6.17 |
Add New Post /wp-admin/post-new.php | 1,550 ▲5 | 23.25 ▲4.68 | 658.93 ▲44.11 | 51.66 ▼11.35 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.26 ▲0.04 | 100.23 ▼0.34 | 44.56 ▲0.45 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,094 | 1.71 | 23.64 | 26.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/product-price-history/fs/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_pph_price_alerts
- wp_pph_price_history
- The uninstall procedure has failed, leaving 9 options in the database
- fs_accounts
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
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
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Contributors: Plugin contributors not specified
product-price-history/product-price-history.php Passed 13 tests
"Product Price History for WooCommerce" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Price history tracker for WooCommerce products.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin35,173 lines of code in 169 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 8,356 | 17,901 | 34,950 |
JavaScript | 8 | 35 | 70 | 204 |
CSS | 19 | 1 | 0 | 19 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 71.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 1,362 | |
▷ Static methods | 217 | 15.93% |
▷ Public methods | 965 | 70.85% |
▷ Protected methods | 17 | 1.25% |
▷ Private methods | 380 | 27.90% |
Functions | 107 | |
▷ Named functions | 104 | 97.20% |
▷ Anonymous functions | 3 | 2.80% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fs/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
fs/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |