Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure had errors
- > User error in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
Server metrics [RAM: ▼1.96MB] [CPU: ▼57.29ms] Passed 4 tests
Analyzing server-side resources used by Google Photos Gallery with Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.24 ▼42.04 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.22 ▼41.68 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.26 ▼47.00 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.19 ▼98.43 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.52 ▼26.46 |
Server storage [IO: ▲9.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,503 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Photos Gallery with Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,062 ▲327 | 13.75 ▼0.99 | 7.55 ▲5.78 | 51.83 ▲2.80 |
Dashboard /wp-admin | 2,248 ▲63 | 5.86 ▲0.89 | 100.58 ▼12.15 | 42.98 ▼4.95 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.00 ▼0.05 | 34.83 ▼6.33 | 32.87 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,555 ▲19 | 18.14 ▼5.07 | 623.63 ▼46.07 | 49.89 ▼6.12 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.26 ▲0.05 | 92.72 ▼10.64 | 41.50 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User error in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/platform_check.php+24
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.4.16.
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/google-picasa-albums-viewer/admin/partials/google-photos-albums-gallery-admin-display.php
- > /wp-content/plugins/google-picasa-albums-viewer/public/partials/google-photos-albums-gallery-public-display.php
- 799× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Montgomery' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/Montgomery.php:23
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/google/common-protos/src/Type/PhoneNumber.php:34
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/google-picasa-albums-viewer/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php on line 39
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Cache\\CacheException' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/psr/cache/src/InvalidArgumentException.php:11
- > PHP Warning
Class 'Google\\Http\\MediaFileUpload' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/google/apiclient/src/aliases.php on line 32
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/composer/installers/src/Composer/Installers/FuelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Google\\Protobuf\\Internal\\Message' not found in wp-content/plugins/google-picasa-albums-viewer/vendor/google/protobuf/src/Google/Protobuf/FloatValue.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
google-picasa-albums-viewer/google-photos-albums-gallery.php 85% from 13 tests
The principal PHP file in "Google Photos Gallery with Shortcodes" v. 4.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- 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
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("google-picasa-albums-viewer.php" instead of "google-photos-albums-gallery.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
Success! There were no dangerous files found in this plugin106,297 lines of code in 1,439 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,331 | 20,564 | 81,464 | 95,289 |
Markdown | 50 | 2,392 | 0 | 6,606 |
JSON | 36 | 0 | 0 | 3,402 |
JavaScript | 4 | 75 | 109 | 353 |
CSS | 3 | 45 | 13 | 284 |
YAML | 5 | 31 | 3 | 156 |
XML | 5 | 3 | 5 | 85 |
Protocol Buffers | 2 | 14 | 38 | 64 |
Python | 1 | 13 | 23 | 44 |
Bourne Shell | 2 | 4 | 0 | 14 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 679.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 158 | |
Interfaces | 54 | |
Traits | 28 | |
Classes | 1,233 | |
▷ Abstract classes | 221 | 17.92% |
▷ Concrete classes | 1,012 | 82.08% |
▷ Final classes | 66 | 6.52% |
Methods | 7,179 | |
▷ Static methods | 1,071 | 14.92% |
▷ Public methods | 6,017 | 83.81% |
▷ Protected methods | 474 | 6.60% |
▷ Private methods | 688 | 9.58% |
Functions | 212 | |
▷ Named functions | 44 | 20.75% |
▷ Anonymous functions | 168 | 79.25% |
Constants | 913 | |
▷ Global constants | 9 | 0.99% |
▷ Class constants | 904 | 99.01% |
▷ Public constants | 850 | 94.03% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/lightbox/images/next.png | 1.32KB | 1.58KB | 0.00% |
public/css/lightbox/images/close.png | 0.27KB | 0.29KB | 0.00% |
public/css/lightbox/images/prev.png | 1.33KB | 1.59KB | 0.00% |