Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲5.73MB] [CPU: ▲37.25ms] 75% from 4 tests
This is a short check of server-side resources used by Integrate Google Drive - Browse, Upload, Download, Embed, Play, Share, Gallery, and Manage Your Google Drive Files Into Your WordPress Site
It is recommended to improve the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.73MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.26 ▲5.79 | 77.41 ▲34.65 |
Dashboard /wp-admin | 9.28 ▲5.97 | 87.16 ▲39.80 |
Posts /wp-admin/edit.php | 9.28 ▲5.92 | 92.47 ▲48.49 |
Add New Post /wp-admin/post-new.php | 11.12 ▲5.23 | 125.47 ▲31.15 |
Media Library /wp-admin/upload.php | 9.28 ▲6.05 | 76.75 ▲43.38 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.28 | 66.87 |
Server storage [IO: ▲8.64MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/integrate-google-drive/" and "wp-content/uploads/"
- (new file) wp-content/integrate-google-drive-cache/.empty
Filesystem: 611 new files
Database: 3 new tables, 12 new options
New tables |
---|
wp_integrate_google_drive_shortcodes |
wp_integrate_google_drive_logs |
wp_integrate_google_drive_files |
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
igd_version |
widget_theysaidso_widget |
igd_install_time |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
fs_accounts |
igd_notices |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Integrate Google Drive - Browse, Upload, Download, Embed, Play, Share, Gallery, and Manage Your Google Drive Files Into Your WordPress Site
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲93 | 14.30 ▼0.10 | 1.87 ▲0.11 | 28.07 ▼15.00 |
Dashboard /wp-admin | 2,220 ▲42 | 5.52 ▼0.25 | 96.91 ▼16.99 | 89.18 ▲44.62 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 1.98 ▼0.01 | 41.35 ▼1.31 | 36.54 ▼3.80 |
Add New Post /wp-admin/post-new.php | 1,591 ▲65 | 23.12 ▼0.08 | 709.32 ▲73.15 | 39.02 ▼18.19 |
Media Library /wp-admin/upload.php | 1,502 ▲102 | 4.23 ▲0.10 | 98.79 ▲0.88 | 73.26 ▲24.41 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,108 | 1.65 | 27.00 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/integrate-google-drive/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 3 tables
- wp_integrate_google_drive_logs
- wp_integrate_google_drive_shortcodes
- wp_integrate_google_drive_files
- The uninstall procedure has failed, leaving 12 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- fs_accounts
- can_compress_scripts
- theysaidso_admin_options
- igd_version
- fs_active_plugins
- igd_install_time
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/integrate-google-drive/includes/divi/includes/modules/Gallery/Gallery.php:7
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/integrate-google-drive/vendors/Google-sdk/src/Google/Service/Drive.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function IGD\\add_action() in wp-content/plugins/integrate-google-drive/includes/class-shortcode-locations.php:11
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/integrate-google-drive/includes/divi/includes/modules/Slider/Slider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/integrate-google-drive/includes/views/getting-started/basic-usage.php:3
- > PHP Fatal error
Uncaught Error: Class 'IGDGoogle_Service' not found in wp-content/plugins/integrate-google-drive/vendors/Google-sdk/src/Google/Service/Oauth2.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function IGD\\add_filter() in wp-content/plugins/integrate-google-drive/includes/integrations/class-tutor.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/integrate-google-drive/vendors/ZipStream/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'ZipStream\\Stream' not found in wp-content/plugins/integrate-google-drive/vendors/ZipStream/src/DeflateStream.php:6
- > PHP Fatal error
Uncaught Error: Class 'ZipStream\\Exception' not found in wp-content/plugins/integrate-google-drive/vendors/ZipStream/src/Exception/StreamNotReadableException.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
integrate-google-drive/plugin.php 85% from 13 tests
"Integrate Google Drive - Browse, Upload, Download, Embed, Play, Share, Gallery, and Manage Your Google Drive Files Into Your WordPress Site" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("integrate-google-drive.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected86,675 lines of code in 486 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 287 | 12,980 | 25,132 | 58,599 |
JSON | 16 | 0 | 0 | 20,513 |
CSS | 50 | 886 | 7 | 5,316 |
SVG | 92 | 0 | 0 | 1,979 |
JavaScript | 40 | 44 | 109 | 249 |
XML | 1 | 1 | 0 | 19 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 26.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 251 | |
▷ Abstract classes | 10 | 3.98% |
▷ Concrete classes | 241 | 96.02% |
▷ Final classes | 5 | 2.07% |
Methods | 3,092 | |
▷ Static methods | 336 | 10.87% |
▷ Public methods | 2,588 | 83.70% |
▷ Protected methods | 53 | 1.71% |
▷ Private methods | 451 | 14.59% |
Functions | 256 | |
▷ Named functions | 225 | 87.89% |
▷ Anonymous functions | 31 | 12.11% |
Constants | 243 | |
▷ Global constants | 112 | 46.09% |
▷ Class constants | 131 | 53.91% |
▷ Public constants | 130 | 99.24% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
68 PNG files occupy 0.43MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/settings/buddyboss.png | 2.42KB | 2.23KB | ▼ 7.98% |
assets/images/user-icon.png | 0.50KB | 0.33KB | ▼ 33.53% |
assets/images/icons/powerpoint.png | 0.79KB | 0.79KB | 0.12% |
assets/images/settings/acf.png | 5.68KB | 2.49KB | ▼ 56.17% |
assets/images/icons/script.png | 0.65KB | 0.72KB | 0.00% |