Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲5.06MB] [CPU: ▲28.26ms] 75% from 4 tests
Analyzing server-side resources used by Embedder for Google Reviews
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.06MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.90 ▲5.44 | 69.48 ▲27.53 |
Dashboard /wp-admin | 8.92 ▲5.62 | 71.42 ▲20.76 |
Posts /wp-admin/edit.php | 8.92 ▲5.57 | 83.74 ▲35.42 |
Add New Post /wp-admin/post-new.php | 9.50 ▲3.62 | 133.28 ▲37.82 |
Media Library /wp-admin/upload.php | 8.92 ▲5.69 | 68.88 ▲29.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.92 | 57.97 |
Server storage [IO: ▲3.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 241 new files
Database: no new tables, 13 new options
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
grwp_place_info |
db_upgraded |
can_compress_scripts |
fs_accounts |
theysaidso_admin_options |
fs_active_plugins |
gr_latest_results_free |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Embedder for Google Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,038 ▲303 | 13.88 ▼0.50 | 5.75 ▲3.92 | 28.28 ▼13.46 |
Dashboard /wp-admin | 2,330 ▲142 | 5.05 ▼0.83 | 110.36 ▲0.26 | 46.45 ▲5.47 |
Posts /wp-admin/edit.php | 2,210 ▲121 | 2.29 ▲0.24 | 41.03 ▲1.56 | 38.20 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.26 ▲4.92 | 680.01 ▲74.41 | 63.96 ▲11.56 |
Media Library /wp-admin/upload.php | 1,513 ▲125 | 4.45 ▲0.27 | 100.55 ▲5.67 | 45.95 ▲4.38 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,181 | 1.84 | 27.38 | 28.55 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/embedder-for-google-reviews/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 13 options
- widget_recent-comments
- db_upgraded
- google_reviews_option_name
- gr_latest_results_free
- fs_accounts
- can_compress_scripts
- theysaidso_admin_options
- gr_latest_results
- fs_active_plugins
- fs_debug_mode
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'GRWP_Google_Reviews_Output' not found in wp-content/plugins/embedder-for-google-reviews/public/includes/class-grwp-reviews-widget-slider.php:3
- > PHP Fatal error
Uncaught Error: Class 'GRWP_Google_Reviews_Output' not found in wp-content/plugins/embedder-for-google-reviews/public/includes/class-grwp-reviews-widget-badge.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/embedder-for-google-reviews/admin/includes/how-to.php:8
- > PHP Fatal error
Uncaught Error: Class 'GRWP_Google_Reviews_Output' not found in wp-content/plugins/embedder-for-google-reviews/public/includes/class-grwp-reviews-widget-grid.php:3
- > PHP Fatal error
Uncaught Error: Class 'GRWP_Free_API_Service_Advanced' not found in wp-content/plugins/embedder-for-google-reviews/admin/includes/class-grwp-pro-api-service.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #5, #6 in embedder-for-google-reviews/assets to your readme.txt
embedder-for-google-reviews/google-reviews.php 85% from 13 tests
This is the main PHP file of "Embedder for Google Reviews" version 1.5.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("embedder-for-google-reviews.php" instead of "google-reviews.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin36,777 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 8,526 | 17,941 | 35,176 |
PO File | 6 | 470 | 602 | 1,140 |
JavaScript | 8 | 108 | 163 | 429 |
CSS | 15 | 0 | 0 | 28 |
SVG | 4 | 0 | 0 | 4 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 65.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 1,356 | |
▷ Static methods | 209 | 15.41% |
▷ Public methods | 943 | 69.54% |
▷ Protected methods | 26 | 1.92% |
▷ Private methods | 387 | 28.54% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
dist/images/sample-photo.png | 11.63KB | 11.62KB | 0.12% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |