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.37MB] [CPU: ▲0.45ms] Passed 4 tests
Analyzing server-side resources used by DigitalOcean Spaces Sync
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 40.46 ▼2.24 |
Dashboard /wp-admin | 3.70 ▲0.40 | 48.70 ▼1.12 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 51.26 ▲10.59 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 96.13 ▲2.53 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 38.50 ▲2.64 |
Server storage [IO: ▲14.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,890 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by DigitalOcean Spaces Sync
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.25 ▼1.12 | 4.54 ▲2.81 | 40.31 ▼4.27 |
Dashboard /wp-admin | 2,216 ▲25 | 4.86 ▼0.03 | 106.77 ▼8.61 | 40.88 ▼2.93 |
Posts /wp-admin/edit.php | 2,099 ▲7 | 2.04 ▲0.04 | 39.62 ▼0.71 | 33.87 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,525 ▼19 | 23.30 ▲5.44 | 602.75 ▼10.71 | 51.36 ▼7.75 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.20 ▼0.02 | 96.01 ▼4.96 | 44.49 ▲2.60 |
DigitalOcean Spaces Sync /wp-admin/setting_page.php | 26 | 0.44 | 0.09 | 13.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 547× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/LicenseManager/Exception/LicenseManagerException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/WafRegional/WafRegionalClient.php:169
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/CognitoSync/Exception/CognitoSyncException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/CloudSearchDomain/Exception/CloudSearchDomainException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/GroundStation/GroundStationClient.php:59
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/do-spaces-sync/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/PersonalizeRuntime/Exception/PersonalizeRuntimeException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/IoT1ClickProjects/IoT1ClickProjectsClient.php:41
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/MediaStoreData/MediaStoreDataClient.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Crypto\\MetadataStrategyInterface' not found in wp-content/plugins/do-spaces-sync/vendor/aws/aws-sdk-php/src/S3/Crypto/HeadersMetadataStrategy.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/setting_page.php
- > Network (severe)
wp-admin/setting_page.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== do-spaces-sync ===
)
do-spaces-sync/loader.php 85% from 13 tests
The main PHP script in "DigitalOcean Spaces Sync" version 2.2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("do-spaces-sync.php" instead of "loader.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin45,067 lines of code in 1,358 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,295 | 7,066 | 30,343 | 34,320 |
JSON | 33 | 8 | 0 | 6,713 |
Markdown | 19 | 1,179 | 0 | 3,573 |
SVG | 2 | 0 | 2 | 140 |
PO File | 1 | 38 | 38 | 133 |
reStructuredText | 1 | 35 | 29 | 59 |
CSS | 2 | 11 | 0 | 53 |
JavaScript | 1 | 9 | 1 | 27 |
make | 2 | 10 | 0 | 22 |
XML | 1 | 3 | 0 | 14 |
YAML | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 409 | |
Interfaces | 40 | |
Traits | 25 | |
Classes | 664 | |
▷ Abstract classes | 16 | 2.41% |
▷ Concrete classes | 648 | 97.59% |
▷ Final classes | 12 | 1.85% |
Methods | 2,602 | |
▷ Static methods | 317 | 12.18% |
▷ Public methods | 1,877 | 72.14% |
▷ Protected methods | 153 | 5.88% |
▷ Private methods | 572 | 21.98% |
Functions | 426 | |
▷ Named functions | 77 | 18.08% |
▷ Anonymous functions | 349 | 81.92% |
Constants | 198 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 198 | 100.00% |
▷ Public constants | 198 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin