Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼5.26ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: ACF S3 Media Files
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 47.82 ▲2.90 |
Dashboard /wp-admin | 3.64 ▲0.29 | 54.91 ▼10.48 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 57.05 ▲7.18 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 90.90 ▼18.66 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 38.74 ▲5.21 |
Server storage [IO: ▲24.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,988 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: ACF S3 Media Files
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲36 | 14.72 ▲0.37 | 1.86 ▼0.10 | 42.45 ▲0.52 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▲0.03 | 94.42 ▲5.94 | 43.32 ▲4.24 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 2.02 ▲0.02 | 35.43 ▼5.85 | 34.62 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,541 ▲10 | 22.97 ▼0.12 | 605.04 ▼6.31 | 54.88 ▲5.67 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.20 ▲0.01 | 98.17 ▼6.08 | 41.56 ▼5.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/acf-s3-media-files/vendor/mtdowling/jmespath.php/bin/jp.php
- > /wp-content/plugins/acf-s3-media-files/vendor/bin/jp.php
- 820× 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/acf-s3-media-files/vendor/aws/aws-sdk-php/src/WorkDocs/Exception/WorkDocsException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Signature\\SignatureInterface' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/Signature/AnonymousSignature.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/Ecs/Exception/EcsException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/DeviceFarm/Exception/DeviceFarmException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/Lightsail/LightsailClient.php:315
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/SavingsPlans/SavingsPlansClient.php:27
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/CloudWatchRUM/CloudWatchRUMClient.php:29
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/CodeGuruReviewer/Exception/CodeGuruReviewerException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/CodeStarNotifications/Exception/CodeStarNotificationsException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\S3\\UseArnRegion\\ConfigurationInterface' not found in wp-content/plugins/acf-s3-media-files/vendor/aws/aws-sdk-php/src/S3/UseArnRegion/Configuration.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: acf s3 media, s3, s3 media, field s3, acf s3...
acf-s3-media-files/plugin.php 92% from 13 tests
The principal PHP file in "Advanced Custom Fields: ACF S3 Media Files" v. 1.1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-s3-media-files.php" instead of "plugin.php")
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
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/acf-s3-media-files/vendor/bin/jp.php.bat
- ☣ wp-content/plugins/acf-s3-media-files/vendor/aws/aws-crt-php/run_tests.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,875 | 8,242 | 42,897 | 46,166 |
Markdown | 27 | 1,326 | 0 | 3,816 |
JSON | 15 | 6 | 0 | 1,556 |
C | 10 | 250 | 89 | 882 |
C/C++ Header | 2 | 105 | 38 | 441 |
JavaScript | 4 | 78 | 175 | 368 |
CSS | 2 | 9 | 0 | 283 |
YAML | 5 | 30 | 57 | 198 |
Bourne Shell | 3 | 19 | 4 | 176 |
reStructuredText | 1 | 35 | 29 | 59 |
GLSL | 1 | 17 | 0 | 55 |
XML | 1 | 0 | 0 | 24 |
m4 | 1 | 4 | 4 | 22 |
Pascal | 1 | 5 | 15 | 14 |
Bourne Again Shell | 1 | 5 | 0 | 13 |
make | 1 | 4 | 0 | 9 |
DOS Batch | 2 | 2 | 0 | 6 |
INI | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 659 | |
Interfaces | 60 | |
Traits | 26 | |
Classes | 950 | |
▷ Abstract classes | 17 | 1.79% |
▷ Concrete classes | 933 | 98.21% |
▷ Final classes | 57 | 6.11% |
Methods | 2,852 | |
▷ Static methods | 537 | 18.83% |
▷ Public methods | 2,101 | 73.67% |
▷ Protected methods | 137 | 4.80% |
▷ Private methods | 614 | 21.53% |
Functions | 598 | |
▷ Named functions | 196 | 32.78% |
▷ Anonymous functions | 402 | 67.22% |
Constants | 259 | |
▷ Global constants | 3 | 1.16% |
▷ Class constants | 256 | 98.84% |
▷ Public constants | 245 | 95.70% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/conversation.png | 1.24KB | 0.99KB | ▼ 20.09% |
assets/images/skype.png | 1.16KB | 0.90KB | ▼ 22.16% |
assets/images/ticket.png | 0.79KB | 0.54KB | ▼ 31.59% |
assets/images/email.png | 0.89KB | 0.65KB | ▼ 27.14% |