Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.73ms] Passed 4 tests
This is a short check of server-side resources used by EDD Google Customer Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.01 ▼8.81 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.21 ▼0.69 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.78 ▲0.73 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.64 ▲1.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.27 ▲2.39 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by EDD Google Customer Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.25 ▼1.12 | 1.55 ▼0.41 | 43.57 ▼7.26 |
Dashboard /wp-admin | 2,206 ▲17 | 4.85 ▼0.12 | 105.91 ▼7.49 | 41.94 ▼0.83 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.00 ▼0.00 | 39.94 ▲4.04 | 33.46 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 22.40 ▼0.76 | 691.73 ▲17.76 | 52.71 ▼5.79 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.03 | 95.78 ▼7.04 | 41.49 ▼4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/edd-google-customer-reviews/public/panels/class-edd-google-customer-reviews-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-google-customer-reviews/admin/panels/general-fields.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-google-customer-reviews/admin/panels/sidebar.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (You need to activate your plugin from the Settings page by adding your Google Merchant ID. You can access the same from: EDD Google Customer Reviews > EDD Google Customer Reviews.), #2 (Sample opt-in popup modal that will be presented to your customers upon transaction complete.)
edd-google-customer-reviews/edd-google-customer-reviews.php 77% from 13 tests
"EDD Google Customer Reviews" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "4.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin520 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 110 | 483 | 447 |
CSS | 2 | 1 | 8 | 67 |
JavaScript | 2 | 2 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 35 | |
▷ Static methods | 4 | 11.43% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/edd_ee_logo.png | 0.44KB | 0.80KB | 0.00% |