Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▲2.50ms] Passed 4 tests
An overview of server-side resources used by S3 Spaces Sync
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 43.82 ▲2.83 |
Dashboard /wp-admin | 3.71 ▲0.41 | 49.85 ▼0.83 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 51.75 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 100.92 ▲8.19 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 41.32 ▲6.48 |
S3 Spaces Sync /wp-admin/options-general.php?page=s3-spaces | 3.60 | 37.57 |
Server storage [IO: ▲12.71MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,665 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for S3 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.30 ▼1.01 | 5.65 ▲2.35 | 41.65 ▼6.35 |
Dashboard /wp-admin | 2,216 ▲31 | 4.88 ▼0.97 | 112.72 ▲5.32 | 42.14 ▼3.46 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.08 ▲0.05 | 38.77 ▲0.37 | 37.00 ▲3.97 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 18.34 ▲0.27 | 608.39 ▼45.79 | 57.32 ▲3.74 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.22 ▲0.07 | 97.09 ▲1.05 | 42.79 ▼0.90 |
S3 Spaces Sync /wp-admin/options-general.php?page=s3-spaces | 1,138 | 2.03 | 27.54 | 47.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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 everything seems fine, this is not 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/s3-spaces-sync/vendor/bin/jp.php
- 507× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/MarketplaceCommerceAnalytics/Exception/MarketplaceCommerceAnalyticsException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Api/Parser/Exception/ParserException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\AbstractModel' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Api/Operation.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Inspector/Exception/InspectorException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/ElasticLoadBalancingV2/ElasticLoadBalancingV2Client.php:77
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Crypto\\AesStreamInterface' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Crypto/AesGcmDecryptingStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/ApplicationAutoScaling/ApplicationAutoScalingClient.php:29
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Rekognition/RekognitionClient.php:77
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/AutoScaling/AutoScalingClient.php:118
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/s3-spaces-sync/vendor/aws/aws-sdk-php/src/Api/Parser/QueryParser.php:14
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: s3, aws, media, storage, space...
s3-spaces-sync/s3-spaces.php 85% from 13 tests
Analyzing the main PHP file in "S3 Spaces Sync" version 1.0.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("s3-spaces-sync.php" instead of "s3-spaces.php")
- 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
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/s3-spaces-sync/vendor/bin/jp.php.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,194 | 6,721 | 28,103 | 32,413 |
JSON | 34 | 8 | 0 | 6,730 |
Markdown | 17 | 1,209 | 0 | 3,672 |
SVG | 2 | 0 | 2 | 140 |
PO File | 1 | 38 | 38 | 132 |
reStructuredText | 1 | 35 | 29 | 59 |
CSS | 2 | 10 | 0 | 53 |
XML | 3 | 7 | 0 | 50 |
JavaScript | 1 | 8 | 1 | 27 |
YAML | 2 | 8 | 0 | 27 |
make | 2 | 10 | 0 | 22 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 372 | |
Interfaces | 38 | |
Traits | 23 | |
Classes | 619 | |
▷ Abstract classes | 15 | 2.42% |
▷ Concrete classes | 604 | 97.58% |
▷ Final classes | 12 | 1.99% |
Methods | 2,499 | |
▷ Static methods | 287 | 11.48% |
▷ Public methods | 1,812 | 72.51% |
▷ Protected methods | 145 | 5.80% |
▷ Private methods | 542 | 21.69% |
Functions | 400 | |
▷ Named functions | 77 | 19.25% |
▷ Anonymous functions | 323 | 80.75% |
Constants | 179 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 179 | 100.00% |
▷ Public constants | 179 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin