72% ultimate-media-on-the-cloud-lite

Code Review | Ultimate Media On The Cloud Lite

WordPress plugin Ultimate Media On The Cloud Lite scored72%from 54 tests.

About plugin

  • Plugin page: ultimate-media-on...
  • Plugin version: 1.51.2
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2019
  • Latest release: Jul 29, 2022
  • Number of updates: 20
  • Update frequency: every 56.3 days
  • Top authors: phprockets (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,128 total downloads

Benchmarks

Plugin footprint 83% 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: ▲1.51MB] [CPU: ▲15.47ms] Passed 4 tests

This is a short check of server-side resources used by Ultimate Media On The Cloud Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.01 ▲1.5582.38 ▲40.33
Dashboard /wp-admin4.85 ▲1.5173.81 ▲9.15
Posts /wp-admin/edit.php4.90 ▲1.5571.87 ▲20.14
Add New Post /wp-admin/post-new.php7.37 ▲1.49110.31 ▼1.21
Media Library /wp-admin/upload.php4.71 ▲1.4969.38 ▲33.78
AddOns /wp-admin/admin.php?page=phpR-ucm-addons4.7160.82
Support / Feedback /wp-admin/admin.php?page=phpR-ucm-support4.8263.53
Upgrade to Pro /wp-admin/admin.php?page=phpR-ucm-pro-upgrade4.7059.37
Documentation /wp-admin/admin.php?page=phpR-ucm&ucm-tab=help4.8963.57
General Settings /wp-admin/admin.php?page=phpR-ucm4.8965.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 1,850 new files
Database: 1 new table, 13 new options
New tables
wp_phpr_ucm_accounts
New WordPress options
theysaidso_admin_options
phpr_ucm_post_types
phpr_ucm_advanced_delete_cloud_file
phpr_ucm_file_types
phpr_ucm_option_scheme
widget_recent-posts
can_compress_scripts
widget_recent-comments
phpr_ucm_option_is_active
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Media On The Cloud Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12114.24 ▼0.112.08 ▼0.2847.53 ▲3.13
Dashboard /wp-admin2,236 ▲625.56 ▼0.1194.12 ▲5.8073.93 ▲24.07
Posts /wp-admin/edit.php2,150 ▲501.99 ▼0.0137.02 ▲0.3035.46 ▼2.07
Add New Post /wp-admin/post-new.php1,588 ▲6023.00 ▼0.11711.41 ▲32.6950.11 ▼7.93
Media Library /wp-admin/upload.php1,453 ▲564.24 ▲0.09113.65 ▲13.7077.23 ▲29.94
AddOns /wp-admin/admin.php?page=phpR-ucm-addons1,0843.6062.8349.33
Support / Feedback /wp-admin/admin.php?page=phpR-ucm-support1,2583.6954.4452.52
Upgrade to Pro /wp-admin/admin.php?page=phpR-ucm-pro-upgrade9593.4932.9441.39
Documentation /wp-admin/admin.php?page=phpR-ucm&ucm-tab=help2,2884.0067.1547.62
General Settings /wp-admin/admin.php?page=phpR-ucm2,2953.4460.9943.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=phpR-ucm-addons
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PhpRockets_UltimateMedia_Settings::loadAddOns() should not be called statically

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 take a closer look at the following
  • 33× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/functions/index.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/requires/index.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/index.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/tpl/index.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/tpl/common/_form.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/classes/PhpRockets_UltimateMedia_Install.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/classes/PhpRockets_UltimateMedia_Root.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/tpl/common/news.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/requires/system.requirements.inc.php
    • > /wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/systems/tpl/email/feedback.php
  • 867× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Trait 'Google\\Cloud\\Core\\Iterator\\ItemIteratorTrait' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/google-core/vendor/google/cloud-core/src/Iterator/ItemIterator.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/CloudSearchDomain/CloudSearchDomainClient.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/Exception/AwsException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/CloudHsm/Exception/CloudHsmException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/google-core/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/google-core/vendor/monolog/monolog/tests/Monolog/Handler/RedisHandlerTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/Waf/WafClient.php:156
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/S3/Exception/S3Exception.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/GameLift/GameLiftClient.php:156
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/ultimate-media-on-the-cloud-lite/includes/addons/vendor/aws-sdk-v3/Aws/ServerlessApplicationRepository/Exception/ServerlessApplicationRepositoryException.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wordpress cloud storage, amazon s3, wordpress s3, google cloud, aws s3

ultimate-media-on-the-cloud-lite/ultimate-media-on-the-cloud.php 77% from 13 tests

"Ultimate Media On The Cloud Lite" version 1.51.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 261 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-media-on-the-cloud-lite.php" instead of "ultimate-media-on-the-cloud.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin90,427 lines of code in 1,710 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,62013,05748,81765,075
CSS61,614349,678
Markdown393,09708,830
JSON28405,953
JavaScript74836464
XSLT22320209
SVG10080
YAML318076
XML37053
make1409

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.86
▷ Minimum class complexity1.00
▷ Maximum class complexity308.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces422
Interfaces70
Traits56
Classes1,034
▷ Abstract classes232.22%
▷ Concrete classes1,01197.78%
▷ Final classes222.18%
Methods5,350
▷ Static methods5089.50%
▷ Public methods4,04075.51%
▷ Protected methods3917.31%
▷ Private methods91917.18%
Functions717
▷ Named functions14920.78%
▷ Anonymous functions56879.22%
Constants362
▷ Global constants30.83%
▷ Class constants35999.17%
▷ Public constants359100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/ucm-icon.png0.35KB0.43KB0.00%