Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-gratify/schema/class-wp-grv-schema.php+91
Trying to access array offset on value of type bool
Server metrics [RAM: ▲3.55MB] [CPU: ▼342.12ms] Passed 4 tests
This is a short check of server-side resources used by WP Gratify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.93 ▲4.41 | 33.23 ▼17.53 |
Dashboard /wp-admin | 7.95 ▲4.54 | 23.66 ▼13.09 |
Posts /wp-admin/edit.php | 7.95 ▲4.30 | 23.34 ▼74.82 |
Add New Post /wp-admin/post-new.php | 7.95 ▲0.97 | 24.15 ▼1,263.02 |
Media Library /wp-admin/upload.php | 7.95 ▲4.65 | 23.47 ▼1.47 |
Settings /wp-admin/admin.php?page=settings-menu | 7.95 | 27.81 |
Dashboard /wp-admin/admin.php?page=review_slug | 7.95 | 24.20 |
Add New /wp-admin/admin.php?page=add-new-menu | 7.95 | 27.61 |
Help /wp-admin/admin.php?page=help-menu | 7.95 | 23.99 |
Categories /wp-admin/admin.php?page=category-menu | 7.95 | 24.49 |
WP Gratify /wp-admin/admin.php?page=wp-grv | 7.95 | 23.26 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 7.95 | 29.55 |
Upgrade /wp-admin/admin.php?page=wp-grv-upgrade-menu | 7.95 | 25.32 |
Reviews /wp-admin/admin.php?page=all_review_menu | 7.95 | 23.76 |
Server storage [IO: ▲4.41MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 244 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_wp_grv_category_list_tbl |
wp_wp_grv_review_invitation_tbl |
wp_wp_grv_gmb_posts_tbl |
New WordPress options |
---|
fs_active_plugins |
gmb_settings |
fs_gdpr |
fs_accounts |
fs_debug_mode |
wp_grv_gmb_location_settings |
fs_api_cache |
Browser metrics Passed 4 tests
Checking browser requirements for WP Gratify
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,457 ▲713 | 18.85 ▲3.18 | 17.86 ▲11.56 | 2.25 ▲0.13 |
Dashboard /wp-admin | 3,399 ▲541 | 8.23 ▲2.08 | 162.67 ▲21.97 | 196.16 ▲38.85 |
Posts /wp-admin/edit.php | 3,220 ▲529 | 5.79 ▲2.56 | 97.52 ▲32.29 | 162.59 ▲16.05 |
Add New Post /wp-admin/post-new.php | 2,053 ▲392 | 21.32 ▼0.38 | 436.10 ▼2.66 | 180.84 ▲22.82 |
Media Library /wp-admin/upload.php | 2,003 ▲305 | 6.61 ▲1.11 | 121.44 ▼25.26 | 218.68 ▲30.90 |
Settings /wp-admin/admin.php?page=settings-menu | 6,805 | 10.48 | 201.04 | 335.63 |
Dashboard /wp-admin/admin.php?page=review_slug | 1,934 | 5.52 | 121.59 | 274.87 |
Add New /wp-admin/admin.php?page=add-new-menu | 1,847 | 5.26 | 84.55 | 190.17 |
Help /wp-admin/admin.php?page=help-menu | 1,679 | 4.98 | 82.64 | 211.24 |
Categories /wp-admin/admin.php?page=category-menu | 1,967 | 5.66 | 100.20 | 201.01 |
WP Gratify /wp-admin/admin.php?page=wp-grv | 1,739 | 5.01 | 88.85 | 181.63 |
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius | 1,930 | 5.15 | 86.61 | 131.08 |
Upgrade /wp-admin/admin.php?page=wp-grv-upgrade-menu | 28 | 0.94 | 0.04 | 15.31 |
Reviews /wp-admin/admin.php?page=all_review_menu | 1,498 | 5.18 | 83.53 | 111.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-gratify/schema/class-wp-grv-schema.php+91
Trying to access array offset on value of type bool
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_wp_grv_review_invitation_tbl
- wp_wp_grv_gmb_posts_tbl
- wp_wp_grv_category_list_tbl
- Zombie WordPress options were found after uninstall: 7 options
- gmb_settings
- fs_api_cache
- fs_gdpr
- fs_active_plugins
- wp_grv_gmb_location_settings
- fs_debug_mode
- fs_accounts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 203 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=all_review_menu
- > Notice in wp-content/plugins/wp-gratify/class-wp-gratify-review.php+431
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-gratify/freemius/templates/ajax-loader.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-gratify/schema/class-wp-grv-schema.php:90
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/wp-gratify/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-gratify/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-gratify/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/wp-gratify/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify/wp-grv-tbl-operations/class-wp-grv-tbl-operation.php:1129
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify/shortcode/class-wp-gratify-intake-form-ajax.php:213
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-gratify/wp-gratify-business-hours-display.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gratify/class-wp-gratify-review-meta-box.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/wp-gratify/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=all_review_menu
- > Network (severe)
wp-content/plugins/wp-gratify//assets/css/admin/wp-grv-invitation-style.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Network (severe)
wp-content/plugins/wp-gratify//assets/css/admin/wp-grv-gmb-add-post-style.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Network (severe)
wp-content/plugins/wp-gratify//assets/js/admin/wp-grv-gmb-add-post-script.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=settings-menu 484 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=settings-menu 492 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=settings-menu - Access to XMLHttpRequest at 'https://mybusiness.googleapis.com/v4//reviews' from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/admin.php?page=settings-menu
- > Network (severe)
https://mybusiness.googleapis.com/v4//reviews - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=wp-grv-upgrade-menu
- > Network (severe)
wp-admin/admin.php?billing_cycle=annual&page=wp-grv-pricing - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #3, #4, #5, #6, #7, #8, #9 in wp-gratify/assets to your readme.txt
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-gratify/class-wp-gratify-review.php 92% from 13 tests
This is the main PHP file of "WP Gratify" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-gratify.php" instead of "class-wp-gratify-review.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected57,665 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 7,050 | 16,155 | 35,213 |
PO File | 10 | 5,710 | 6,913 | 12,558 |
JavaScript | 19 | 585 | 1,365 | 5,399 |
CSS | 28 | 102 | 255 | 4,494 |
SVG | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,609)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 75.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,609.00 |
Average method complexity | 4.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,142 | |
▷ Static methods | 232 | 20.32% |
▷ Public methods | 811 | 71.02% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 316 | 27.67% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 119 | |
▷ Global constants | 96 | 80.67% |
▷ Class constants | 23 | 19.33% |
▷ Public constants | 23 | 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
12 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wp_grv_test.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wp_grv.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/external/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/external/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |