90% advanced-s3-uploads-config

Code Review | Advanced Config for S3 Uploads

WordPress plugin Advanced Config for S3 Uploads scored 90% from 54 tests.

About plugin

  • Plugin page: advanced-s3-uploa...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6.1
  • WordPress version: 5.9.2
  • First release: Mar 26, 2020
  • Latest release: Feb 18, 2021
  • Number of updates: 7
  • Update frequency: every 47.3 days
  • Top authors: noplanman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 477 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.42ms] Passed 4 tests

Server-side resources used by Advanced Config for S3 Uploads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.57 ▲2.14
Dashboard /wp-admin3.41 ▲0.0032.70 ▼1.27
Posts /wp-admin/edit.php3.65 ▲0.0037.00 ▼0.26
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.14 ▼1,187.38
Media Library /wp-admin/upload.php3.30 ▲0.0025.18 ▼0.76

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Config for S3 Uploads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.88 ▼0.156.00 ▼0.462.20 ▼0.68
Dashboard /wp-admin2,892 ▲316.15 ▼0.03119.94 ▼15.72156.67 ▲0.11
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.1864.09 ▼0.89141.08 ▼7.58
Add New Post /wp-admin/post-new.php1,689 ▲2820.79 ▲4.40461.41 ▲64.25162.45 ▲3.60
Media Library /wp-admin/upload.php1,701 ▼05.51 ▼0.03150.21 ▲5.30184.06 ▲1.28

Uninstaller [IO: ▲0.04MB] [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
These items require your attention
  • This plugin has failed uninstalling correctly, leaving 4 files (0.04MB) in the plugin directory
    • (new file) readme.txt
    • (new file) uninstall.php
    • (new file) advanced-s3-uploads-config.php
    • (new file) LICENSE

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: s3, s3-uploads, config

advanced-s3-uploads-config/advanced-s3-uploads-config.php Passed 13 tests

The main PHP script in "Advanced Config for S3 Uploads" version 1.1.0 is automatically included on every request by WordPress
49 characters long description:
Endpoint and bucket configuration for S3 Uploads.

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin288 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP268143288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin