72% cloud

Code Review | WP Cloud

WordPress plugin WP Cloud scored72%from 54 tests.

About plugin

  • Plugin page: cloud
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Oct 27, 2022
  • Number of updates: 35
  • Update frequency: every 86.4 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /10,794 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.97ms] Passed 4 tests

This is a short check of server-side resources used by WP Cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.80 ▼1.71
Dashboard /wp-admin3.43 ▲0.0943.93 ▼15.14
Posts /wp-admin/edit.php3.55 ▲0.1945.27 ▲6.66
Add New Post /wp-admin/post-new.php6.01 ▲0.1383.53 ▼15.97
Media Library /wp-admin/upload.php3.36 ▲0.1334.95 ▲4.94
Public Cloud Iframe /wp-admin/admin.php?page=wpclod_iframe3.3440.97
Cloud /wp-admin/admin.php?page=wpcloud3.3431.07
System /wp-admin/admin.php?page=wpcloud_sys3.3031.02
Settings /wp-admin/admin.php?page=wpcloud_settings3.3334.65
Log /wp-admin/admin.php?page=wpcloud_log3.3229.81

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • The plugin illegally modified 1 file (0.66KB) outside of "wp-content/plugins/cloud/" and "wp-content/uploads/"
    • (new file) cloud/index.php
Filesystem: 30 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
wpcloud_version
theysaidso_admin_options
can_compress_scripts
wpcloud_default_overlap
wpcloud_default_quota
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.74 ▲0.181.63 ▼0.1944.75 ▲2.63
Dashboard /wp-admin2,229 ▲485.65 ▼0.0580.29 ▼17.3139.08 ▲1.32
Posts /wp-admin/edit.php2,131 ▲312.00 ▼0.0133.34 ▼7.0735.99 ▼2.46
Add New Post /wp-admin/post-new.php1,551 ▲2323.07 ▼0.24664.40 ▲61.5563.20 ▲8.60
Media Library /wp-admin/upload.php1,431 ▲284.15 ▼0.06105.43 ▲8.9445.38 ▼0.65
Public Cloud Iframe /wp-admin/admin.php?page=wpclod_iframe7911.9324.3635.11
Cloud /wp-admin/admin.php?page=wpcloud1,0444.6045.3151.68
System /wp-admin/admin.php?page=wpcloud_sys8412.0223.1927.55
Settings /wp-admin/admin.php?page=wpcloud_settings1,0883.94104.1451.62
Log /wp-admin/admin.php?page=wpcloud_log7932.0023.1222.12

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • can_compress_scripts
    • wpcloud_default_quota
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • wpcloud_default_overlap
    • widget_theysaidso_widget
    • wpcloud_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wpcloud
    • > Warning in wp-content/plugins/cloud/panel.php+34
    Division by zero
    • > GET request to /wp-admin/admin.php?page=wpcloud_sys
    • > Notice in wp-content/plugins/cloud/sys_panel.php+11
    Undefined variable: max_upload
    • > GET request to /wp-admin/admin.php?page=wpcloud_sys
    • > Notice in wp-content/plugins/cloud/sys_panel.php+11
    Undefined variable: max_post
    • > GET request to /wp-admin/admin.php?page=wpcloud_sys
    • > Notice in wp-content/plugins/cloud/sys_panel.php+11
    Undefined variable: memory_limit

SRP 50% from 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
Please fix the following
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/cloud/includes/htmlsettings.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/cloud/shortcodes/create_table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cloud/panels/users_quota.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/cloud/shortcodes/user_files_send.php:2
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cloud/shortcodes/user_files_table.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/cloud/shortcodes/user_files_table.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cloud/panels/users_actions.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cloud/shortcodes/shortcodes.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/cloud/shortcodes/user_files_upload.php:2
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/cloud/shortcodes/create_table.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wpclod_iframe
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=wpclod_iframe 188:21 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
    • > GET request to /wp-admin/admin.php?page=wpcloud
    • > Network (severe)
    https://www.google.com/uds/api/visualization/1.1/b286575f41699923b257980af3c9fe9d/format+it,default+it,ui+it,corechart+it.I.js - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=wpcloud
    • > Javascript (severe) in unknown
    https://www.google.com/jsapi?autoload={ 150:139 Uncaught Error: Autoload failed with: SyntaxError: Expected proper…me or '}' in JSON at position 1 (line 1 column 2)
    • > GET request to /wp-admin/admin.php?page=wpcloud
    • > Console-api (warning) in unknown
    https://www.google.com/jsapi 140:47 " Attempting to load version '1.1' of Google Charts, but the previously loaded '1' will be used instead."
    • > GET request to /wp-admin/admin.php?page=wpcloud_settings
    • > Javascript (severe) in unknown
    http://ct1.addthis.com/static/r07/core142.js 1:1595 Uncaught ReferenceError: _atc is not defined
    • > GET request to /wp-admin/admin.php?page=wpcloud_settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=wpcloud_settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=wpcloud_settings
    • > Network (severe)
    https://www.comune.sanpellegrinoterme.bg.it/wp-content/plugins/amministrazione-trasparente/govconfig/panels/includes/mmsignature.png - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please add at least on tag
You can take inspiration from this readme.txt

cloud/cloud.php Passed 13 tests

The main file in "WP Cloud" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
Give every user a personal web-space with WP Cloud, the most advanced plugin to make WordPress a cloud platform!

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 plugin852 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1517135852

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces0
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%
Functions35
▷ Named functions3497.14%
▷ Anonymous functions12.86%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/icons/document-excel.png0.66KB0.58KB▼ 11.31%
includes/icons/document-odt.png0.65KB0.62KB▼ 4.67%
includes/wpcloud.png71.63KB30.63KB▼ 57.23%
includes/cloud.png5.93KB3.62KB▼ 39.03%
includes/icons/document-image.png0.55KB0.68KB0.00%