Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by Gsheet Contact Addons & ShortCode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 40.28 ▼2.42 |
Dashboard /wp-admin | 4.39 ▲1.08 | 48.64 ▲1.81 |
Posts /wp-admin/edit.php | 4.44 ▲1.08 | 51.74 ▲8.37 |
Add New Post /wp-admin/post-new.php | 6.90 ▲1.02 | 82.23 ▼17.26 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 43.94 ▲10.11 |
Server storage [IO: ▲4.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 1,093 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Gsheet Contact Addons & ShortCode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.56 ▼0.63 | 1.74 ▼0.63 | 39.17 ▼6.38 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▲1.00 | 106.87 ▲3.38 | 37.53 ▼4.40 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.04 | 39.39 ▲3.89 | 33.80 ▲4.38 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.22 ▼4.87 | 613.49 ▼69.21 | 56.34 ▼7.27 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.07 | 99.62 ▲0.94 | 43.54 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 695× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Rijndael' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php:59
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/google/apiclient-services/src/Sheets/AddBandingResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/google/apiclient-services/src/Sheets/IterativeCalculationSettings.php:20
- > PHP Warning
Class 'Google\\Task\\Runner' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/google/apiclient/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/google/apiclient-services/src/Sheets/ChartCustomNumberFormatOptions.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PuTTY' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PuTTY.php:33
- > PHP Fatal error
Uncaught Error: Class 'Google\\Service\\Resource' not found in wp-content/plugins/shortcode-addons-for-google-sheet-api/inc/lib/vendor/google/apiclient-services/src/Drive/Resource/Revisions.php:31
- > 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 Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: google sheets integrations, sheets, cf7, contact form 7 integrations, google...
shortcode-addons-for-google-sheet-api/ifnt-Gsheet.php 77% from 13 tests
This is the main PHP file of "Gsheet Contact Addons & ShortCode" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcode-addons-for-google-sheet-api.php" instead of "ifnt-Gsheet.php")
- Requires PHP: The required version number must match the one declared in readme.txt ("7.0" instead of "5.6")
- 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
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin81,013 lines of code in 1,043 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 978 | 13,058 | 49,945 | 73,666 |
Markdown | 29 | 1,751 | 0 | 5,163 |
JSON | 21 | 0 | 0 | 1,795 |
YAML | 7 | 31 | 1 | 143 |
Python | 1 | 22 | 25 | 72 |
CSS | 1 | 1 | 0 | 71 |
JavaScript | 1 | 6 | 0 | 50 |
XML | 3 | 0 | 0 | 41 |
make | 1 | 4 | 0 | 9 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods 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.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 660.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 81 | |
Interfaces | 44 | |
Traits | 14 | |
Classes | 953 | |
▷ Abstract classes | 214 | 22.46% |
▷ Concrete classes | 739 | 77.54% |
▷ Final classes | 39 | 5.28% |
Methods | 6,014 | |
▷ Static methods | 666 | 11.07% |
▷ Public methods | 5,108 | 84.94% |
▷ Protected methods | 395 | 6.57% |
▷ Private methods | 511 | 8.50% |
Functions | 195 | |
▷ Named functions | 56 | 28.72% |
▷ Anonymous functions | 139 | 71.28% |
Constants | 525 | |
▷ Global constants | 16 | 3.05% |
▷ Class constants | 509 | 96.95% |
▷ Public constants | 488 | 95.87% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin