Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲4.30MB] [CPU: ▼890.61ms] 75% from 4 tests
A check of server-side resources used by Focus on Reviews for WooCommerce
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,680.12ms on /wp-admin/admin.php?page=focus-on-reviews-for-woocommerce)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.15 ▲4.64 | 71.29 ▲14.34 |
Dashboard /wp-admin | 8.17 ▲4.76 | 55.39 ▲22.70 |
Posts /wp-admin/edit.php | 8.17 ▲4.53 | 62.72 ▲27.33 |
Add New Post /wp-admin/post-new.php | 10.23 ▲3.27 | 117.23 ▼3,609.40 |
Media Library /wp-admin/upload.php | 8.17 ▲4.87 | 39.86 ▲9.94 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 8.17 | 39.80 |
Focus On Reviews for WooCommerce /wp-admin/admin.php?page=focus-on-reviews-for-woocommerce | 8.17 | 2,680.12 |
Server storage [IO: ▲3.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 195 new files
Database: no new tables, 8 new options
New WordPress options |
---|
forfwc_settings_text20 |
fs_api_cache |
fs_active_plugins |
forfwc_settings_checkbox0 |
fs_accounts |
forfwc_settings_text10 |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Focus on Reviews for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲163 | 16.28 ▲1.08 | 8.81 ▲2.04 | 2.20 ▼0.53 |
Dashboard /wp-admin | 2,927 ▲66 | 6.14 ▼0.03 | 117.38 ▼11.39 | 173.02 ▲15.70 |
Posts /wp-admin/edit.php | 2,723 ▲32 | 3.23 ▼0.01 | 67.67 ▲2.78 | 155.88 ▲10.93 |
Add New Post /wp-admin/post-new.php | 1,708 ▲18 | 21.66 ▲0.39 | 436.00 ▼28.71 | 166.17 ▲6.24 |
Media Library /wp-admin/upload.php | 1,731 ▲36 | 5.62 ▲0.08 | 145.02 ▲6.70 | 200.53 ▲5.78 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,447 | 2.50 | 52.90 | 124.85 |
Focus On Reviews for WooCommerce /wp-admin/admin.php?page=focus-on-reviews-for-woocommerce | 1,218 | 2.65 | 54.59 | 159.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- fs_debug_mode
- forfwc_settings_text10
- fs_api_cache
- forfwc_settings_text20
- forfwc_settings_checkbox0
- fs_active_plugins
- fs_gdpr
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/focus-on-reviews-for-woocommerce/public/partials/forfwc-public-display.php
- > /wp-content/plugins/focus-on-reviews-for-woocommerce/admin/partials/forfwc-admin-display.php
- > /wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/ajax-loader.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function forfwc_fs() in wp-content/plugins/focus-on-reviews-for-woocommerce/public/class-forfwc-public.php:109
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/focus-on-reviews-for-woocommerce/freemius/templates/account/partials/addon.php:9
- > PHP Notice
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 86% 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
Please fix the following attributes:
- Donate link: Invalid url: ""
focus-on-reviews-for-woocommerce/forfwc.php 77% from 13 tests
"Focus on Reviews for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("focus-on-reviews-for-woocommerce.php" instead of "forfwc.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 173 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin41,400 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 6,768 | 15,807 | 28,217 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
CSS | 14 | 47 | 22 | 291 |
JavaScript | 6 | 46 | 113 | 203 |
HTML | 1 | 6 | 0 | 117 |
SVG | 1 | 0 | 0 | 14 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 71.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,103 | |
▷ Static methods | 172 | 15.59% |
▷ Public methods | 767 | 69.54% |
▷ Protected methods | 15 | 1.36% |
▷ Private methods | 321 | 29.10% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 120 | |
▷ Global constants | 97 | 80.83% |
▷ Class constants | 23 | 19.17% |
▷ Public constants | 23 | 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
3 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/focus-on-reviews-for-woocommerce.png | 62.76KB | 16.64KB | ▼ 73.48% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |