Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.92ms] Passed 4 tests
A check of server-side resources used by Image and video gallery from Google Drive
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 37.88 ▲0.67 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.12 ▲1.25 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 51.61 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 95.27 ▼12.42 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 40.58 ▲6.20 |
Basic options /wp-admin/admin.php?page=sgdg_basic | 3.40 | 34.28 |
Advanced options /wp-admin/admin.php?page=sgdg_advanced | 3.40 | 34.52 |
Server storage [IO: ▲11.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 832 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image and video gallery from Google Drive
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.34 ▼0.28 | 1.55 ▼0.08 | 38.45 ▼3.32 |
Dashboard /wp-admin | 2,225 ▲54 | 5.56 ▼0.03 | 94.79 ▲5.56 | 82.37 ▲39.99 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.00 ▼0.02 | 38.53 ▼2.49 | 34.70 ▼2.15 |
Add New Post /wp-admin/post-new.php | 6,228 ▲4,702 | 18.94 ▼4.14 | 975.31 ▲354.96 | 69.92 ▲19.95 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.14 ▼0.03 | 97.09 ▲0.49 | 70.46 ▲27.54 |
Basic options /wp-admin/admin.php?page=sgdg_basic | 876 | 2.20 | 23.45 | 31.23 |
Advanced options /wp-admin/admin.php?page=sgdg_advanced | 1,008 | 1.70 | 30.08 | 31.88 |
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 were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/skaut-google-drive-gallery/skaut-google-drive-gallery.php
- > /wp-content/plugins/skaut-google-drive-gallery/uninstall.php
- 431× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Class 'Sgdg\\Vendor\\Google\\Http\\MediaFileUpload' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/google/apiclient/src/aliases.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Sgdg\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/guzzlehttp/promises/src/Promise.php:10
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/secp128r2.php:17
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\phpseclib3\\Crypt\\EC\\Curves\\sect283k1' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/nistk283.php:15
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\phpseclib3\\Crypt\\RSA' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/PublicKey.php:29
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS8' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/PKCS8.php:40
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php:34
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/skaut-google-drive-gallery/vendor/paragonie/constant_time_encoding/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/skaut-google-drive-gallery/vendor/paragonie/constant_time_encoding/tests/autoload.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sgdg\\Vendor\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/skaut-google-drive-gallery/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php:24
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
skaut-google-drive-gallery/skaut-google-drive-gallery.php Passed 13 tests
The principal PHP file in "Image and video gallery from Google Drive" v. 2.13.8 is loaded by WordPress automatically on each request
54 characters long description:
A WordPress gallery using Google Drive as file storage
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
Good job! No executable or dangerous file extensions detected104,746 lines of code in 810 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 797 | 2,308 | 46,230 | 104,726 |
JavaScript | 7 | 0 | 20 | 14 |
CSS | 6 | 0 | 0 | 6 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 89 | |
Interfaces | 40 | |
Traits | 12 | |
Classes | 723 | |
▷ Abstract classes | 219 | 30.29% |
▷ Concrete classes | 504 | 69.71% |
▷ Final classes | 103 | 20.44% |
Methods | 4,276 | |
▷ Static methods | 813 | 19.01% |
▷ Public methods | 3,357 | 78.51% |
▷ Protected methods | 381 | 8.91% |
▷ Private methods | 538 | 12.58% |
Functions | 301 | |
▷ Named functions | 103 | 34.22% |
▷ Anonymous functions | 198 | 65.78% |
Constants | 609 | |
▷ Global constants | 56 | 9.20% |
▷ Class constants | 553 | 90.80% |
▷ Public constants | 553 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/icon.png | 0.69KB | 0.65KB | ▼ 6.06% |