Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼175.95ms] Passed 4 tests
Analyzing server-side resources used by Elegant Apps Integration of Google Sheet With Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 24.80 ▲2.50 |
Dashboard /wp-admin | 3.06 ▼0.00 | 31.00 ▼6.26 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 31.71 ▲0.20 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 69.23 ▼699.66 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 25.12 ▲1.94 |
Google Sheet /wp-admin/admin.php?page=elgent_cf7glgsheet_googlesheet | 2.74 | 16.27 |
Server storage [IO: ▲4.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,063 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Elegant Apps Integration of Google Sheet With Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,690 ▲89 | 15.56 ▼0.39 | 5.24 ▼3.50 | 74.01 ▼1.59 |
Dashboard /wp-admin | 2,933 ▲38 | 6.09 ▼0.23 | 117.12 ▼14.25 | 170.13 ▼5.11 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.36 ▲0.12 | 69.31 ▲4.79 | 156.34 ▲12.79 |
Add New Post /wp-admin/post-new.php | 3,808 ▲110 | 18.19 ▼0.18 | 429.70 ▼41.15 | 166.96 ▲9.84 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.52 ▲0.02 | 146.99 ▲7.12 | 184.75 ▼1.48 |
Google Sheet /wp-admin/admin.php?page=elgent_cf7glgsheet_googlesheet | 28 | 0.94 | 0.03 | 17.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 25% 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/oc-google-sheet-with-contact-form-7/oc_googlesheetcf7.php
- 669× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/google/apiclient-services/src/Sheets/DeveloperMetadataLocation.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/google/apiclient-services/src/Sheets/DataSourceSheetDimensionRange.php:20
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:36
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/google/apiclient-services/src/Sheets/Sheet.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php:19
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Warning
Class 'Google\\Collection' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/oc-google-sheet-with-contact-form-7/lib/vendor/google/apiclient-services/src/Drive/DriveFileCapabilities.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=elgent_cf7glgsheet_googlesheet
- > Network (severe)
wp-admin/admin.php?page=elgent_cf7glgsheet_googlesheet - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in oc-google-sheet-with-contact-form-7/assets to your readme.txt
- Contributors: Plugin contributors not specified
oc-google-sheet-with-contact-form-7/oc_googlesheetcf7.php 85% from 13 tests
"Elegant Apps Integration of Google Sheet With Contact Form 7" version 1.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:
- Main file name: Name the main plugin file the same as the plugin slug ("oc-google-sheet-with-contact-form-7.php" instead of "oc_googlesheetcf7.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected77,715 lines of code in 1,033 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 969 | 12,884 | 48,560 | 70,757 |
Markdown | 28 | 1,612 | 0 | 4,814 |
JSON | 20 | 0 | 0 | 1,676 |
YAML | 7 | 31 | 1 | 143 |
CSS | 1 | 5 | 2 | 140 |
Python | 1 | 22 | 25 | 77 |
JavaScript | 1 | 14 | 18 | 54 |
XML | 3 | 0 | 0 | 41 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 660.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 81 | |
Interfaces | 43 | |
Traits | 14 | |
Classes | 911 | |
▷ Abstract classes | 214 | 23.49% |
▷ Concrete classes | 697 | 76.51% |
▷ Final classes | 39 | 5.60% |
Methods | 5,838 | |
▷ Static methods | 654 | 11.20% |
▷ Public methods | 4,982 | 85.34% |
▷ Protected methods | 384 | 6.58% |
▷ Private methods | 472 | 8.08% |
Functions | 193 | |
▷ Named functions | 58 | 30.05% |
▷ Anonymous functions | 135 | 69.95% |
Constants | 506 | |
▷ Global constants | 18 | 3.56% |
▷ Class constants | 488 | 96.44% |
▷ Public constants | 468 | 95.90% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/support.png | 6.44KB | 5.59KB | ▼ 13.09% |
includes/images/review.png | 15.87KB | 11.90KB | ▼ 25.01% |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |