Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/google-drive-wp-media/google-drive-wp-media.php+40
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.07MB] [CPU: ▼54.08ms] Passed 4 tests
A check of server-side resources used by Google Drive WP Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▼0.53 | 11.23 ▼31.17 |
Dashboard /wp-admin | 2.95 ▼0.40 | 8.82 ▼52.13 |
Posts /wp-admin/edit.php | 2.95 ▼0.41 | 10.00 ▼39.37 |
Add New Post /wp-admin/post-new.php | 2.95 ▼2.94 | 9.33 ▼93.63 |
Media Library /wp-admin/upload.php | 2.95 ▼0.28 | 9.73 ▼20.70 |
GDWPM Categories /wp-admin/edit-tags.php?taxonomy=gdwpm_category&post_type=attachment | 2.95 | 8.71 |
Google Drive WP Media /wp-admin/upload.php?page=google-drive-wp-media | 2.95 | 9.96 |
Server storage [IO: ▲0.96MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
gdwpm_ukuran_preview |
gdwpm_img_thumbs |
db_upgraded |
gdwpm_opsi_chunk |
gdwpm_dummy_folder |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
gdwpm_new_folder_kecing |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Google Drive WP Media
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,068 ▲297 | 14.71 ▲0.13 | 7.64 ▲5.58 | 44.11 ▲0.07 |
Dashboard /wp-admin | 2,261 ▲76 | 5.82 ▼0.04 | 122.03 ▲20.91 | 38.33 ▼5.75 |
Posts /wp-admin/edit.php | 2,148 ▲62 | 2.68 ▲0.54 | 48.50 ▲5.41 | 55.77 ▲17.79 |
Add New Post /wp-admin/post-new.php | 1,569 ▲36 | 23.61 ▲0.31 | 645.75 ▼2.33 | 36.09 ▼13.77 |
Media Library /wp-admin/upload.php | 1,443 ▲52 | 4.80 ▲0.53 | 90.87 ▼7.89 | 40.95 ▼2.56 |
GDWPM Categories /wp-admin/edit-tags.php?taxonomy=gdwpm_category&post_type=attachment | 1,326 | 2.63 | 35.63 | 46.97 |
Google Drive WP Media /wp-admin/upload.php?page=google-drive-wp-media | 1,229 | 3.26 | 75.20 | 70.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/google-drive-wp-media/google-drive-wp-media.php+40
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 13 options in the database
- gdwpm_ukuran_preview
- gdwpm_dummy_folder
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- gdwpm_opsi_kategori_dr_folder
- gdwpm_img_thumbs
- can_compress_scripts
- widget_recent-posts
- gdwpm_new_folder_kecing
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/upload.php?page=google-drive-wp-media
- > Notice in wp-content/plugins/google-drive-wp-media/google-drive-wp-media.php+1364
Trying to access array offset on value of type bool
- > GET request to /wp-admin/upload.php?page=google-drive-wp-media
- > Deprecated in wp-content/plugins/google-drive-wp-media/gdwpm-api/service/Google_Utils.php+58
Array and string offset access syntax with curly braces is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/google-drive-wp-media/google-drive-wp-media-options.php
- > /wp-content/plugins/google-drive-wp-media/google-drive-wp-media-galleries.php
- > /wp-content/plugins/google-drive-wp-media/google-drive-wp-media-albums.php
- > /wp-content/plugins/google-drive-wp-media/google-drive-wp-media-themes.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'io/Google_HttpRequest.php' (include_path='.:/usr/share/php') in wp-content/plugins/google-drive-wp-media/gdwpm-api/io/Google_IO.php on line 18
- > PHP Warning
require_once(service/Google_Utils.php): failed to open stream: No such file or directory in wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_OAuth2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Google_Signer' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_P12Signer.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_ServiceResource' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/contrib/Google_DriveService.php:25
- > PHP Fatal error
Uncaught Error: Class 'Google_Verifier' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_PemVerifier.php:23
- > PHP Warning
require_once(service/Google_Utils.php): failed to open stream: No such file or directory in wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_OAuth2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/cache/Google_ApcCache.php:26
- > PHP Fatal error
require_once(): Failed opening required 'service/Google_Utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_OAuth2.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Google_Cache' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/cache/Google_MemcacheCache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_IO' not found in wp-content/plugins/google-drive-wp-media/gdwpm-api/io/Google_CurlIO.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 25 tag instead of maximum 10
google-drive-wp-media/google-drive-wp-media.php Passed 13 tests
The main PHP file in "Google Drive WP Media" ver. 2.4.4 adds more information about the plugin and also serves as the entry point for this plugin
136 characters long description:
WordPress Google Drive integration plugin. Google Drive on Wordpress Media Publishing. Upload files to Google Drive from WordPress blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected8,428 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 725 | 3,491 | 6,641 |
JavaScript | 5 | 252 | 116 | 1,430 |
CSS | 3 | 25 | 14 | 357 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 84 | |
▷ Abstract classes | 5 | 5.95% |
▷ Concrete classes | 79 | 94.05% |
▷ Final classes | 0 | 0.00% |
Methods | 808 | |
▷ Static methods | 18 | 2.23% |
▷ Public methods | 772 | 95.54% |
▷ Protected methods | 9 | 1.11% |
▷ Private methods | 27 | 3.34% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 6 | 28.57% |
▷ Class constants | 15 | 71.43% |
▷ Public constants | 15 | 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
31 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/animation/gdwpm-insert-shortcode.png | 0.71KB | 0.69KB | ▼ 1.94% |
images/themes/humanity.png | 3.18KB | 3.17KB | ▼ 0.52% |
images/themes/ui-darkness.png | 8.55KB | 4.62KB | ▼ 45.95% |
images/animation/gdwpm_breaker_256.png | 14.55KB | 5.81KB | ▼ 60.10% |
images/themes/sunny.png | 8.38KB | 3.90KB | ▼ 53.49% |