80% advanced-s3-uploads-config

Code Review | Advanced Config for S3 Uploads

WordPress plugin Advanced Config for S3 Uploads scored80%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: 6.3.1
  • 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 /752 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.02ms] Passed 4 tests

A check of server-side resources used by Advanced Config for S3 Uploads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.33 ▼6.10
Dashboard /wp-admin3.31 ▲0.0047.17 ▼1.51
Posts /wp-admin/edit.php3.36 ▲0.0044.35 ▼1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.48 ▼3.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.78 ▲2.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Config for S3 Uploads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.80 ▲0.431.94 ▼0.1250.55 ▲10.11
Dashboard /wp-admin2,209 ▲215.02 ▲0.11100.42 ▼18.6443.49 ▼0.52
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0338.00 ▲1.6433.41 ▼1.04
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.51628.83 ▼87.0553.18 ▲0.58
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.0596.65 ▼6.4145.68 ▲2.71

Uninstaller [IO: ▲0.04MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin has failed uninstalling correctly, leaving 4 files (0.04MB) in the plugin directory
    • (new file) advanced-s3-uploads-config.php
    • (new file) uninstall.php
    • (new file) readme.txt
    • (new file) LICENSE
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: config, s3, s3-uploads

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

The primary PHP file in "Advanced Config for S3 Uploads" version 1.1.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Endpoint and bucket configuration for S3 Uploads.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
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

This is a very shot review of cyclomatic complexity and code structure
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