Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.54MB] [CPU: ▼137.64ms] Passed 4 tests
Analyzing server-side resources used by Host your blog on S3 or Google Cloud Storage
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.35 ▲0.63 | 43.54 ▲20.13 |
Dashboard /wp-admin | 3.58 ▲0.53 | 52.87 ▼0.62 |
Posts /wp-admin/edit.php | 3.70 ▲0.59 | 56.01 ▲1.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.51 | 101.35 ▼560.88 |
Media Library /wp-admin/upload.php | 3.53 ▲0.53 | 44.65 ▲9.32 |
Server storage [IO: ▲17.94MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,524 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Host your blog on S3 or Google Cloud Storage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.98 ▼0.01 | 10.07 ▼0.88 | 46.25 ▼7.85 |
Dashboard /wp-admin | 2,991 ▲57 | 6.07 ▼0.07 | 156.28 ▼16.75 | 112.67 ▼5.79 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.74 ▲0.04 | 72.93 ▲1.02 | 94.77 ▲10.20 |
Add New Post /wp-admin/post-new.php | 1,631 ▲50 | 13.74 ▼6.68 | 311.93 ▼104.87 | 117.05 ▲4.46 |
Media Library /wp-admin/upload.php | 1,772 ▼35 | 5.05 ▲0.02 | 167.32 ▼5.97 | 127.16 ▲6.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/index.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/service-account.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/simple-query.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/user-example.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/batch.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/simplefileupload.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/fileupload.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/idtoken.php
- > /wp-content/plugins/wpcloudhosting/gcs/google-api-php-client-master/examples/multi-api.php
- 1259× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/wpcloudhosting/aws/Aws/Kms/Exception/KmsException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wpcloudhosting/aws/Monolog/Formatter/ElasticaFormatter.php:21
- > PHP Fatal error
Uncaught Error: Class 'Aws\\ImportExport\\Exception\\ImportExportException' not found in wp-content/plugins/wpcloudhosting/aws/Aws/ImportExport/Exception/BucketPermissionException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\DynamoDb\\Exception\\DynamoDbException' not found in wp-content/plugins/wpcloudhosting/aws/Aws/DynamoDb/Exception/ConditionalCheckFailedException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\ElastiCache\\Exception\\ElastiCacheException' not found in wp-content/plugins/wpcloudhosting/aws/Aws/ElastiCache/Exception/ReplicationGroupNotFoundException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Common\\Facade\\FacadeInterface' not found in wp-content/plugins/wpcloudhosting/aws/Aws/Common/Facade/Facade.php:24
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/wpcloudhosting/aws/Aws/Ssm/Exception/SsmException.php:24
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/wpcloudhosting/aws/Aws/ElasticBeanstalk/Enum/ConfigurationDeploymentStatus.php:24
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/wpcloudhosting/aws/Doctrine/Common/Cache/MemcachedCache.php:35
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/wpcloudhosting/aws/Monolog/Handler/FleepHookHandler.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: cache, google, static, s3, cloud...
wpcloudhosting/index.php 92% from 13 tests
The primary PHP file in "Host your blog on S3 or Google Cloud Storage" version 0.0.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpcloudhosting.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected396,586 lines of code in 1,511 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,496 | 20,830 | 74,813 | 395,186 |
Markdown | 6 | 281 | 0 | 1,128 |
XML | 2 | 28 | 41 | 122 |
CSS | 1 | 16 | 14 | 83 |
JSON | 4 | 0 | 0 | 39 |
YAML | 1 | 6 | 2 | 22 |
INI | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 202 | |
Interfaces | 86 | |
Traits | 2 | |
Classes | 4,275 | |
▷ Abstract classes | 48 | 1.12% |
▷ Concrete classes | 4,227 | 98.88% |
▷ Final classes | 1 | 0.02% |
Methods | 27,034 | |
▷ Static methods | 290 | 1.07% |
▷ Public methods | 26,299 | 97.28% |
▷ Protected methods | 552 | 2.04% |
▷ Private methods | 183 | 0.68% |
Functions | 124 | |
▷ Named functions | 35 | 28.23% |
▷ Anonymous functions | 89 | 71.77% |
Constants | 1,372 | |
▷ Global constants | 1 | 0.07% |
▷ Class constants | 1,371 | 99.93% |
▷ Public constants | 1,371 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/sprites.png | 35.65KB | 10.91KB | ▼ 69.39% |