10% peek-uploader-to-s3-for-wpdm

Code Review | Peak Uploader to S3 for WPDM

WordPress plugin Peak Uploader to S3 for WPDM scored10%from 54 tests.

About plugin

  • Plugin page: peek-uploader-to-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 16, 2017
  • Latest release: Oct 16, 2017
  • Number of updates: 4
  • Update frequency: every 4.5 days
  • Top authors: codelobster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /912 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/S3.php+2573
    Array and string offset access syntax with curly braces is deprecated

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

Server-side resources used by Peak Uploader to S3 for WPDM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.71 ▼9.15
Dashboard /wp-admin3.31 ▲0.0050.08 ▼3.53
Posts /wp-admin/edit.php3.36 ▲0.0051.92 ▲0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.53 ▼4.31
Media Library /wp-admin/upload.php3.23 ▲0.0038.10 ▼0.07

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 729 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Peak Uploader to S3 for WPDM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.261.60 ▲0.0143.70 ▼3.16
Dashboard /wp-admin2,192 ▲155.62 ▲0.0292.84 ▲2.9743.40 ▲4.86
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0638.04 ▲1.3335.38 ▼1.56
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.38667.06 ▲0.9467.28 ▲12.91
Media Library /wp-admin/upload.php1,397 ▼04.17 ▼0.0395.39 ▼10.5145.89 ▼4.53

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/peek-uploader-to-s3-for-wpdm/tpls/s3-uploader-page/s3-uploader-footer.php
    • > /wp-content/plugins/peek-uploader-to-s3-for-wpdm/widgets/ajax.php
    • > /wp-content/plugins/peek-uploader-to-s3-for-wpdm/tpls/s3-uploader-page/s3-uploader-head.php
  • 307× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/S3/RetryableMalformedResponseParser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/LexRuntimeService/LexRuntimeServiceClient.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/ConfigService/Exception/ConfigServiceException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/Appstream/AppstreamClient.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/Lightsail/LightsailClient.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Api\\Serializer\\QueryParamBuilder' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/Api/Serializer/Ec2ParamBuilder.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/CloudWatchLogs/CloudWatchLogsClient.php:66
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/GuzzleHttp/Promise/RejectedPromise.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/CodeDeploy/Exception/CodeDeployException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\Credentials\\CredentialsInterface' not found in wp-content/plugins/peek-uploader-to-s3-for-wpdm/includes/aws/Aws/Credentials/Credentials.php:8

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 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
6 plugin tags: distribution, amazon s3, download manager, upload, bucket...

peek-uploader-to-s3-for-wpdm/peak-uploader-to-s3-for-wpdm.php 85% from 13 tests

This is the main PHP file of "Peak Uploader to S3 for WPDM" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("peek-uploader-to-s3-for-wpdm.php" instead of "peak-uploader-to-s3-for-wpdm.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 253 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected29,005 lines of code in 727 files:
LanguageFilesBlank linesComment linesLines of code
PHP7214,96119,15526,687
Markdown477202,251
JavaScript153962
CSS1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity7.60
▷ Minimum class complexity1.00
▷ Maximum class complexity268.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces221
Interfaces24
Traits9
Classes411
▷ Abstract classes71.70%
▷ Concrete classes40498.30%
▷ Final classes112.72%
Methods1,834
▷ Static methods25413.85%
▷ Public methods1,28069.79%
▷ Protected methods744.03%
▷ Private methods48026.17%
Functions360
▷ Named functions7019.44%
▷ Anonymous functions29080.56%
Constants143
▷ Global constants10.70%
▷ Class constants14299.30%
▷ Public constants142100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin