10% cloudnet-sync

Code Review | CloudNet360

WordPress plugin CloudNet360 scored10%from 54 tests.

About plugin

  • Plugin page: cloudnet-sync
  • Plugin version: 3.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Jan 17, 2023
  • Number of updates: 54
  • Update frequency: every 29.0 days
  • Top authors: shanevcloudnet360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-admin/includes/upgrade.php+2917
    Undefined index: index_type

Server metrics [RAM: ▲3.82MB] [CPU: ▲14.62ms] Passed 4 tests

This is a short check of server-side resources used by CloudNet360
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.77 ▲4.3163.91 ▲28.14
Dashboard /wp-admin7.89 ▲4.5971.56 ▲26.35
Posts /wp-admin/edit.php7.94 ▲4.5973.90 ▲29.33
Add New Post /wp-admin/post-new.php7.69 ▲1.8063.79 ▼25.33
Media Library /wp-admin/upload.php7.90 ▲4.6867.34 ▲34.83
Field Groups /wp-admin/edit.php?post_type=acf-field-group7.8973.81
API Settings /wp-admin/admin.php?page=api_settings7.7255.50
Cloud Net Survey Shortcoder /wp-admin/admin.php?page=cloudnet_survey_shortcoder7.8563.43
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools7.9061.12
Products /wp-admin/edit.php?post_type=cloudnet_product7.8665.79
Cloud Net Shortcoder /wp-admin/admin.php?page=cloudnet_shortcoder7.8558.33
Opt-In Forms /wp-admin/admin.php?page=form7.7456.84
Add New /wp-admin/post-new.php?post_type=acf-field-group7.7055.57
Dashboard /wp-admin/admin.php?page=cloud_net7.7264.08
Action Surveys /wp-admin/admin.php?page=survey7.7456.84

Server storage [IO: ▲13.10MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 430 new files
Database: 6 new tables, 9 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by CloudNet360
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,064 ▲32914.25 ▼0.1812.74 ▲11.0749.01 ▲9.26
Dashboard /wp-admin2,286 ▲945.31 ▲0.40125.14 ▲18.6142.38 ▲0.02
Posts /wp-admin/edit.php2,183 ▲942.57 ▲0.5747.58 ▲5.7536.80 ▲0.77
Add New Post /wp-admin/post-new.php6,736 ▲5,20325.01 ▲1.961,029.40 ▲362.1941.94 ▼12.27
Media Library /wp-admin/upload.php2,020 ▲6328.59 ▲4.38237.90 ▲137.6760.45 ▲14.95
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,3762.3645.8860.80
API Settings /wp-admin/admin.php?page=api_settings1,0022.2135.0728.34
Cloud Net Survey Shortcoder /wp-admin/admin.php?page=cloudnet_survey_shortcoder1,6506.90129.0663.18
Tools /wp-admin/edit.php?post_type=acf-field-group&page=acf-tools1,3243.4348.9833.20
Products /wp-admin/edit.php?post_type=cloudnet_product1,1782.6037.5829.42
Cloud Net Shortcoder /wp-admin/admin.php?page=cloudnet_shortcoder1,6506.88122.0540.50
Opt-In Forms /wp-admin/admin.php?page=form9032.1731.8328.99
Add New /wp-admin/post-new.php?post_type=acf-field-group4,1365.38122.8056.30
Dashboard /wp-admin/admin.php?page=cloud_net9472.1336.2631.61
Action Surveys /wp-admin/admin.php?page=survey9032.1635.6731.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_cloudnet_incart_products
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_cnsync_taxonomy
    • widget_recent-posts
    • theysaidso_admin_options
    • acf_version
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cloudnet_product
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-admin/includes/plugin.php+1784
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/post-new.php?post_type=acf-field-group
    • > Notice in wp-content/plugins/cloudnet-sync/admin/cnsync-admin-class.php+2007
    Undefined index: cloudnet_gallery
    • > GET request to /wp-admin/post-new.php?post_type=acf-field-group
    • > Notice in wp-content/plugins/cloudnet-sync/admin/cnsync-admin-class.php+2008
    Undefined index: cncustompost
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=acf-field-group
    • > Notice in wp-content/plugins/cloudnet-sync/admin/cnsync-admin-class.php+2484
    Trying to get property 'post_type' of non-object
    • > GET request to /wp-admin/admin.php?page=cloud_net
    • > Notice in wp-content/plugins/cloudnet-sync/admin/partials/cnsync_sync-admin-display.php+19
    Undefined variable: url_api_setting

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
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/cloudnet-sync/public/partials/cnsync_product_1column_view.php
    • > /wp-content/plugins/cloudnet-sync/admin/partials/cnsync_optin_survey_display_shortcode.php
    • > /wp-content/plugins/cloudnet-sync/admin/partials/cnsync_metabox_for_images.php
    • > /wp-content/plugins/cloudnet-sync/public/templates/partials/logout.php
    • > /wp-content/plugins/cloudnet-sync/public/partials/cnsync_cloudnet_memberships_page.php
    • > /wp-content/plugins/cloudnet-sync/public/partials/cnsync_product_grid_view.php
    • > /wp-content/plugins/cloudnet-sync/admin/partials/cnsync_opt_survey_form.php
    • > /wp-content/plugins/cloudnet-sync/admin/partials/cnsync_orders_page.php
    • > /wp-content/plugins/cloudnet-sync/admin/partials/cnsync_optin_display_shortcode.php
    • > /wp-content/plugins/cloudnet-sync/public/templates/partials/restrict_content.php
  • 113× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/admin/views/html-admin-page-upgrade.php:26
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/admin/views/field-group-field.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-link.php:5
    • > PHP Warning
      Use of undefined constant CN360_SYNC__PLUGIN_URL - assumed 'CN360_SYNC__PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cloudnet-sync/admin/partials/cnsync_sync-admin-display.php on line 31
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-wysiwyg.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-tab.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-url.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-output.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/cloudnet-sync/includes/advanced-custom-fields/includes/fields/class-acf-field-oembed.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_active_sidebar() in wp-content/plugins/cloudnet-sync/public/partials/cnsync_cloudnet_memberships_page.php:251

User-side errors Passed 1 test

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


Plugin configuration 76% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === cloudnet-sync === )
  • Contributors: No tags were detected
  • Contributors: Contributors not specified
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

cloudnet-sync/cloudnet360_sync.php 77% from 13 tests

The main PHP script in "CloudNet360" version 3.2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("cloudnet-sync.php" instead of "cloudnet360_sync.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin166,020 lines of code in 343 files:
LanguageFilesBlank linesComment linesLines of code
PO File4435,40860,55271,911

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.38
▷ Minimum class complexity1.00
▷ Maximum class complexity250.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes21.77%
▷ Concrete classes11198.23%
▷ Final classes00.00%
▷ Static methods30.32%
▷ Public methods92397.57%
▷ Protected methods00.00%
▷ Private methods232.43%
▷ Named functions45199.34%
▷ Anonymous functions30.66%
▷ Global constants1493.33%
▷ Class constants16.67%
▷ Public constants1100.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
14 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/word_icon1.png21.88KB7.77KB▼ 64.47%
admin/images/word_icon2.png31.26KB12.04KB▼ 61.50%
admin/images/word_icon4.png20.94KB7.88KB▼ 62.37%