Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.52MB] [CPU: ▼333.21ms] Passed 4 tests
Analyzing server-side resources used by tcS3
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼0.64 | 8.39 ▼14.09 |
Dashboard /wp-admin | 2.13 ▼0.93 | 9.31 ▼33.47 |
Posts /wp-admin/edit.php | 2.13 ▼0.98 | 8.46 ▼32.20 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.30 | 9.69 ▼1,239.64 |
Media Library /wp-admin/upload.php | 2.13 ▼0.88 | 8.35 ▼27.53 |
Server storage [IO: ▲12.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,320 new files
Database: no new tables, 1 new option
New WordPress options |
---|
tcS3_version |
Browser metrics Passed 4 tests
Checking browser requirements for tcS3
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲78 | 15.99 ▲0.37 | 7.44 ▼0.94 | 46.79 ▼1.43 |
Dashboard /wp-admin | 2,961 ▲111 | 6.48 ▲0.57 | 146.74 ▲10.28 | 105.27 ▲8.47 |
Posts /wp-admin/edit.php | 2,741 ▲35 | 2.97 ▲0.28 | 68.07 ▼11.25 | 88.75 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,615 ▲134 | 21.67 ▲3.18 | 263.62 ▼88.59 | 105.06 ▲1.23 |
Media Library /wp-admin/upload.php | 1,807 ▲35 | 5.36 ▲0.32 | 139.46 ▼17.68 | 116.10 ▲3.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tcs3/inc/base.class.php+51
Undefined variable: network_options
- This plugin does not fully uninstall, leaving 1 option in the database
- tcS3_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 386× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/S3/ObjectUploader.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/DataPipeline/Exception/DataPipelineException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Crypto\\AesStreamInterface' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/Crypto/AesGcmEncryptingStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/MachineLearning/MachineLearningClient.php:69
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Multipart\\AbstractUploader' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/S3/MultipartUploader.php:15
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/Shield/Exception/ShieldException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Credentials\\CredentialsInterface' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/Credentials/Credentials.php:8
- > PHP Fatal error
Trait 'Aws\\Api\\Parser\\PayloadParserTrait' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/Api/ErrorParser/XmlErrorParser.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/Shield/ShieldClient.php:29
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tcs3/vendor/aws/aws-sdk-php/src/CloudFront/Exception/CloudFrontException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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
6 plugin tags: media, multisite, amazon, s3, aws...
tcs3/tcS3.php 92% from 13 tests
Analyzing the main PHP file in "tcS3" version 2.1.1
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("tcs3.php" instead of "tcS3.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected58,340 lines of code in 1,107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 945 | 6,929 | 24,303 | 38,495 |
JSON | 32 | 9 | 0 | 11,650 |
Markdown | 14 | 1,120 | 0 | 3,854 |
JavaScript | 90 | 338 | 482 | 2,507 |
CSS | 8 | 96 | 95 | 1,033 |
PO File | 9 | 218 | 275 | 663 |
reStructuredText | 1 | 35 | 29 | 59 |
Sass | 3 | 1 | 0 | 22 |
make | 2 | 10 | 0 | 22 |
YAML | 2 | 5 | 0 | 21 |
XML | 1 | 3 | 0 | 14 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 446.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 287 | |
Interfaces | 27 | |
Traits | 13 | |
Classes | 568 | |
▷ Abstract classes | 8 | 1.41% |
▷ Concrete classes | 560 | 98.59% |
▷ Final classes | 10 | 1.79% |
Methods | 2,445 | |
▷ Static methods | 232 | 9.49% |
▷ Public methods | 1,690 | 69.12% |
▷ Protected methods | 277 | 11.33% |
▷ Private methods | 478 | 19.55% |
Functions | 402 | |
▷ Named functions | 100 | 24.88% |
▷ Anonymous functions | 302 | 75.12% |
Constants | 158 | |
▷ Global constants | 6 | 3.80% |
▷ Class constants | 152 | 96.20% |
▷ Public constants | 152 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin