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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.82ms] Passed 4 tests
An overview of server-side resources used by Get Google Reviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 45.35 ▲3.73 |
Dashboard /wp-admin | 3.56 ▲0.22 | 51.65 ▼13.01 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 48.59 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 92.06 ▼10.42 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 52.49 ▲14.61 |
Layout /wp-admin/admin.php?page=diggr-layout | 3.45 | 36.84 |
Settings /wp-admin/admin.php?page=diggr-settings | 3.45 | 39.65 |
Dashboard /wp-admin/admin.php?page=diggr-dashboard | 3.51 | 35.49 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_diggr_reviews |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Get Google Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 14.03 ▼0.72 | 8.91 ▲7.14 | 46.09 ▲0.46 |
Dashboard /wp-admin | 2,271 ▲65 | 4.91 ▼0.99 | 108.55 ▼1.42 | 87.61 ▲39.88 |
Posts /wp-admin/edit.php | 2,168 ▲89 | 2.03 ▼0.03 | 35.76 ▼0.84 | 36.74 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,739 ▲199 | 22.36 ▼1.03 | 703.20 ▼9.97 | 29.74 ▼27.19 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.20 ▲0.05 | 114.19 ▼1.81 | 91.15 ▲39.35 |
Layout /wp-admin/admin.php?page=diggr-layout | 881 | 2.24 | 27.92 | 28.09 |
Settings /wp-admin/admin.php?page=diggr-settings | 1,314 | 1.76 | 26.49 | 31.29 |
Dashboard /wp-admin/admin.php?page=diggr-dashboard | 945 | 2.02 | 29.55 | 34.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_diggr_reviews
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/get-google-reviews/admin/partials/layout.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/get-google-reviews/admin/partials/dashboard.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/get-google-reviews/public/partials/diggr-reviews-no-layout.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/get-google-reviews/admin/partials/settings.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #4 in get-google-reviews/assets to your readme.txt
get-google-reviews/deltait-get-google-reviews.php 85% from 13 tests
The principal PHP file in "Get Google Reviews" v. 1.2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("get-google-reviews.php" instead of "deltait-get-google-reviews.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
No dangerous file extensions were detected2,483 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 633 | 818 | 1,513 |
CSS | 2 | 129 | 43 | 516 |
PO File | 1 | 105 | 122 | 305 |
SVG | 10 | 0 | 0 | 96 |
JavaScript | 3 | 17 | 57 | 53 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 3 | 5.36% |
▷ Public methods | 50 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.71% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/diggr_search_company_google_maps.png | 4.51KB | 2.02KB | ▼ 55.27% |