Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.56ms] Passed 4 tests
Server-side resources used by CF7 Google Sheets Connector
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 48.30 ▲7.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.18 ▲0.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.46 ▼3.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.01 ▼21.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.36 ▼2.78 |
Server storage [IO: ▲5.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,086 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
gs_access_code |
widget_theysaidso_widget |
gs_token |
widget_recent-comments |
can_compress_scripts |
gs_verify |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CF7 Google Sheets Connector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.05 | 1.82 ▲0.20 | 45.79 ▲5.35 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.07 | 81.12 ▼8.06 | 36.85 ▼3.08 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.01 | 34.13 ▼0.15 | 33.93 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.47 ▲0.20 | 646.73 ▼53.64 | 50.52 ▼5.23 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.20 ▲0.00 | 92.64 ▼3.39 | 41.97 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- gs_verify
- gs_token
- can_compress_scripts
- theysaidso_admin_options
- gs_access_code
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 668× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/monolog/monolog/src/Monolog/Handler/LogmaticHandler.php:21
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Parameters.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/google/apiclient-services/src/Sheets/Interval.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php:34
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\DES' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php:46
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\DH' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/DH/Parameters.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/google/apiclient-services/src/Sheets/BaselineValueFormat.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/cf7-google-sheets-connector/lib/vendor/google/apiclient-services/src/Sheets/UpdateDeveloperMetadataRequest.php:20
- > PHP Warning
Class 'Google\\AuthHandler\\Guzzle7AuthHandler' not found in wp-content/plugins/cf7-google-sheets-connector/lib/src/aliases.php on line 33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues 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
8 plugin tags: cf7, contact form 7 integrations, google sheets integrations, sheets, contact form 7...
cf7-google-sheets-connector/google-sheet-connector.php 85% from 13 tests
Analyzing the main PHP file in "CF7 Google Sheets Connector" version 5.0.6
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cf7-google-sheets-connector.php" instead of "google-sheet-connector.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected83,531 lines of code in 1,044 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 983 | 13,382 | 56,361 | 74,727 |
Markdown | 29 | 1,655 | 0 | 4,915 |
JSON | 19 | 0 | 0 | 2,065 |
CSS | 2 | 62 | 35 | 1,134 |
JavaScript | 3 | 39 | 74 | 282 |
PO File | 1 | 90 | 98 | 267 |
YAML | 3 | 3 | 2 | 102 |
XML | 1 | 0 | 0 | 19 |
make | 1 | 4 | 0 | 9 |
SVG | 1 | 0 | 0 | 8 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 82 | |
Interfaces | 50 | |
Traits | 14 | |
Classes | 909 | |
▷ Abstract classes | 214 | 23.54% |
▷ Concrete classes | 695 | 76.46% |
▷ Final classes | 53 | 7.63% |
Methods | 5,944 | |
▷ Static methods | 678 | 11.41% |
▷ Public methods | 5,069 | 85.28% |
▷ Protected methods | 391 | 6.58% |
▷ Private methods | 484 | 8.14% |
Functions | 177 | |
▷ Named functions | 35 | 19.77% |
▷ Anonymous functions | 142 | 80.23% |
Constants | 531 | |
▷ Global constants | 20 | 3.77% |
▷ Class constants | 511 | 96.23% |
▷ Public constants | 471 | 92.17% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-1.png | 31.09KB | 10.23KB | ▼ 67.10% |
assets/img/permission_screen.png | 29.71KB | 9.43KB | ▼ 68.24% |
assets/img/btn_google_signin_dark_pressed_web.png | 4.14KB | 2.15KB | ▼ 48.09% |
assets/img/CF7GSheet-Connector-logo.png | 23.37KB | 4.89KB | ▼ 79.07% |
assets/img/CF7-GSheetConnector-desktop-img.png | 101.51KB | 101.51KB | 0.00% |