Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.66MB] [CPU: ▼50.10ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 GoogleSheet Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.13 | 7.43 ▼35.93 |
Dashboard /wp-admin | 2.35 ▼0.96 | 7.89 ▼42.01 |
Posts /wp-admin/edit.php | 2.35 ▼1.01 | 9.37 ▼38.51 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.54 | 7.84 ▼83.94 |
Media Library /wp-admin/upload.php | 2.35 ▼0.88 | 8.65 ▼27.33 |
GoogleSheet Integration /wp-admin/admin.php?page=googlesheet | 2.35 | 9.43 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Contact Form 7 GoogleSheet Extension: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.47 ▼0.22 | 1.75 ▼0.27 | 43.38 ▼2.17 |
Dashboard /wp-admin | 2,207 ▲19 | 4.86 ▼0.01 | 108.92 ▼13.99 | 44.46 ▲2.78 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▼0.03 | 41.25 ▼0.65 | 34.92 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.28 ▲0.36 | 597.89 ▼59.76 | 53.81 ▼2.70 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.20 ▼0.02 | 99.57 ▲0.99 | 45.41 ▲4.32 |
GoogleSheet Integration /wp-admin/admin.php?page=googlesheet | 872 | 2.06 | 24.55 | 23.92 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=googlesheet
- > Deprecated in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 61× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/contrib/Google_PlusService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/contrib/Google_GanService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/contrib/Google_AdsenseService.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-spreadsheet-client/tests/Google/Spreadsheet/ServiceRequestFactoryTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Google\\Spreadsheet\\Exception' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-spreadsheet-client/src/Google/Spreadsheet/UnauthorizedException.php:26
- > PHP Fatal error
require_once(): Failed opening required 'io/Google_HttpRequest.php' (include_path='.:/usr/share/php') in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/io/Google_IO.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/cache/Google_ApcCache.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/connect_google.php:12
- > PHP Warning
require_once(service/Google_Utils.php): failed to open stream: No such file or directory in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/auth/Google_OAuth2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/extension-for-contact-form-7-and-googlesheet/php-google-oauth/contrib/Google_BigqueryService.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: google sheet, contact form 7, integration, sheet, google
extension-for-contact-form-7-and-googlesheet/contact-form-7-pk-googlesheet-extension.php 85% from 13 tests
The main PHP script in "Contact Form 7 GoogleSheet Extension" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("extension-for-contact-form-7-and-googlesheet.php" instead of "contact-form-7-pk-googlesheet-extension.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected35,644 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 2,053 | 9,936 | 35,189 |
XML | 7 | 0 | 0 | 285 |
Markdown | 1 | 57 | 0 | 140 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 1.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 915 | |
▷ Abstract classes | 4 | 0.44% |
▷ Concrete classes | 911 | 99.56% |
▷ Final classes | 0 | 0.00% |
Methods | 7,497 | |
▷ Static methods | 22 | 0.29% |
▷ Public methods | 7,464 | 99.56% |
▷ Protected methods | 9 | 0.12% |
▷ Private methods | 24 | 0.32% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 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
There are no PNG files in this plugin