Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.05MB] [CPU: ▼11.28ms] Passed 4 tests
A check of server-side resources used by Reviews from Google
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▼0.51 | 20.96 ▼16.92 |
Dashboard /wp-admin | 3.42 ▲0.08 | 48.40 ▼12.78 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 45.40 ▼2.48 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 80.66 ▼12.93 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.68 ▼1.41 |
Google Reviews /wp-admin/options-general.php?page=greviews-options | 3.29 | 31.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_stored_reviews_wp |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
stored_reviews_db_version |
db_upgraded |
widget_theysaidso_widget |
widget_greviews_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reviews from Google
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.51 ▼0.84 | 1.78 ▲0.10 | 43.54 ▲0.73 |
Dashboard /wp-admin | 2,231 ▲43 | 5.03 ▲0.11 | 115.22 ▲6.14 | 41.17 ▼2.08 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.31 ▲0.32 | 36.07 ▼0.79 | 31.87 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 17.81 ▼5.46 | 681.71 ▲4.94 | 37.71 ▼27.31 |
Media Library /wp-admin/upload.php | 1,410 ▲28 | 4.47 ▲0.17 | 100.67 ▼0.87 | 41.20 ▼4.40 |
Google Reviews /wp-admin/options-general.php?page=greviews-options | 1,756 | 2.62 | 66.89 | 29.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_stored_reviews_wp
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- stored_reviews_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_greviews_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=greviews-options
- > Notice in wp-content/plugins/reviews-from-google/includes/admin-page.php+119
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reviews-from-google/includes/init.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviews-from-google/includes/templates/fullwidth-reviews-template.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reviews-from-google/includes/admin-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reviews-from-google/includes/templates/greviews-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviews-from-google/includes/templates/reviews-template-1.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/reviews-from-google/includes/templates/two-columns-reviews-template.php:27
- > PHP Fatal error
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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: tactical engine, google reviews, reviews, google my business reviews
reviews-from-google/greviews.php 85% from 13 tests
"Reviews from Google" version 3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("reviews-from-google.php" instead of "greviews.php")
Code Analysis Passed 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
There were no executable files found in this plugin884 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 164 | 59 | 702 |
CSS | 2 | 25 | 3 | 146 |
JavaScript | 2 | 9 | 3 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/powered_by_google_on_white.png | 2.08KB | 2.14KB | 0.00% |