Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲7.03MB] [CPU: ▲31.04ms] 50% from 4 tests
This is a short check of server-side resources used by Tce Sharing
The following require your attention
- RAM: Total memory usage must be kept under 10MB (currently 10.16MB on /wp-admin/admin.php?page=tce-sharing)
- Extra RAM: The extra memory usage must be under 5MB (currently 7.03MB on /wp-admin/admin.php?page=tce-sharing)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.48 ▲7.02 | 76.17 ▲31.37 |
Dashboard /wp-admin | 10.34 ▲7.04 | 75.85 ▲28.61 |
Posts /wp-admin/edit.php | 10.39 ▲7.04 | 82.64 ▲30.48 |
Add New Post /wp-admin/post-new.php | 12.95 ▲7.07 | 133.04 ▲34.37 |
Media Library /wp-admin/upload.php | 10.26 ▲7.03 | 68.84 ▲33.70 |
Configuration /wp-admin/admin.php?page=tce-sharing-configuration | 10.17 | 58.23 |
TCE Sharing /wp-admin/admin.php?page=tce-sharing | 10.16 | 60.35 |
Server storage [IO: ▲21.97MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 1,945 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_theysaidso_widget |
tce-sharing-options-organisationName |
db_upgraded |
widget_recent-posts |
tce-sharing-options-autoUploadDefault |
tce-sharing-options-sourceName |
tce-sharing-options-accessCode |
tce-sharing-options-idToken |
widget_recent-comments |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Tce Sharing: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲118 | 13.51 ▼0.78 | 1.54 ▼0.80 | 37.27 ▼11.65 |
Dashboard /wp-admin | 2,284 ▲96 | 5.91 ▲0.12 | 100.38 ▼2.01 | 38.76 ▼3.22 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.04 ▲0.00 | 40.40 ▲0.32 | 36.17 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6,315 ▲4,782 | 22.18 ▼1.07 | 872.24 ▲219.49 | 56.51 ▼4.86 |
Media Library /wp-admin/upload.php | 1,481 ▲93 | 4.27 ▲0.02 | 97.38 ▼7.41 | 40.14 ▼4.00 |
Configuration /wp-admin/admin.php?page=tce-sharing-configuration | 1,120 | 4.07 | 75.33 | 39.00 |
TCE Sharing /wp-admin/admin.php?page=tce-sharing | 857 | 2.04 | 27.47 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- 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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tce-sharing/Views/TceSharingMain/partials/view-header.php
- > /wp-content/plugins/tce-sharing/Autoload/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/tce-sharing/Views/Components/GutenbergTceSharingComponent/partials/auto-upload-post-form.php
- > /wp-content/plugins/tce-sharing/tce-sharing.php
- > /wp-content/plugins/tce-sharing/Views/TceSharingMain/partials/view-footer.php
- 799× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/Route53/Exception/Route53Exception.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/CloudSearchDomain/CloudSearchDomainClient.php:20
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/Kms/KmsClient.php:102
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/Budgets/Exception/BudgetsException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/ServerlessApplicationRepository/ServerlessApplicationRepositoryClient.php:37
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/Appflow/Exception/AppflowException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/ServiceDiscovery/Exception/ServiceDiscoveryException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/Organizations/Exception/OrganizationsException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/tce-sharing/Autoload/aws/aws-sdk-php/src/ApplicationDiscoveryService/ApplicationDiscoveryServiceClient.php:59
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/tce-sharing/Autoload/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: content exchange, sharing, syndication, tce
tce-sharing/tce-sharing.php Passed 13 tests
The primary PHP file in "Tce Sharing" version 2.0.9 is used by WordPress to initiate all plugin functionality
109 characters long description:
Connect to the TCE market place and join other publishers to reach a larger target audience for your content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected59,847 lines of code in 1,926 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,842 | 10,566 | 47,316 | 52,624 |
Markdown | 23 | 1,749 | 0 | 5,028 |
JSON | 14 | 6 | 0 | 1,568 |
CSS | 5 | 44 | 1 | 280 |
JavaScript | 38 | 40 | 207 | 252 |
reStructuredText | 1 | 35 | 29 | 59 |
XML | 1 | 0 | 0 | 15 |
SVG | 1 | 0 | 0 | 12 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 612 | |
Interfaces | 79 | |
Traits | 33 | |
Classes | 977 | |
▷ Abstract classes | 20 | 2.05% |
▷ Concrete classes | 957 | 97.95% |
▷ Final classes | 50 | 5.22% |
Methods | 3,603 | |
▷ Static methods | 528 | 14.65% |
▷ Public methods | 2,743 | 76.13% |
▷ Protected methods | 148 | 4.11% |
▷ Private methods | 712 | 19.76% |
Functions | 534 | |
▷ Named functions | 141 | 26.40% |
▷ Anonymous functions | 393 | 73.60% |
Constants | 314 | |
▷ Global constants | 12 | 3.82% |
▷ Class constants | 302 | 96.18% |
▷ Public constants | 287 | 95.03% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Views/TceSharingMain/images/tce-icon.png | 39.84KB | 14.00KB | ▼ 64.85% |