84% cloud-customer-area

Code Review | Cloud Customer Area

WordPress plugin Cloud Customer Area scored84%from 54 tests.

About plugin

  • Plugin page: cloud-customer-area
  • Plugin version: 2.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Jul 30, 2023
  • Number of updates: 24
  • Update frequency: every 48.5 days
  • Top authors: andreadegiovine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▲0.02ms] Passed 4 tests

Server-side resources used by Cloud Customer Area
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2339.67 ▼2.16
Dashboard /wp-admin3.52 ▲0.2244.99 ▼3.49
Posts /wp-admin/edit.php3.63 ▲0.2848.93 ▲5.23
Add New Post /wp-admin/post-new.php6.10 ▲0.2296.44 ▲5.51
Media Library /wp-admin/upload.php3.44 ▲0.2234.73 ▲0.52

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
cloud_customer_area_installation_time
cloud_customer_area_version
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Cloud Customer Area
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17513.55 ▼0.825.51 ▲3.6040.07 ▼5.46
Dashboard /wp-admin2,224 ▲335.79 ▲0.6898.23 ▼6.5540.83 ▼1.05
Posts /wp-admin/edit.php2,110 ▲212.06 ▲0.0241.24 ▲6.1435.05 ▼2.81
Add New Post /wp-admin/post-new.php1,543 ▲2923.45 ▲5.88632.27 ▼43.0360.59 ▼13.79
Media Library /wp-admin/upload.php1,406 ▲214.20 ▲0.0393.76 ▼7.6140.04 ▼7.61

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • cloud_customer_area_version
    • cloud_customer_area_installation_time
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cloud-customer-area/inc/google-api.php
    • > /wp-content/plugins/cloud-customer-area/part/settings_page_oauth.php
    • > /wp-content/plugins/cloud-customer-area/part/settings_page_main.php
    • > /wp-content/plugins/cloud-customer-area/cloud-customer-area.php
    • > /wp-content/plugins/cloud-customer-area/inc/main.php
    • > /wp-content/plugins/cloud-customer-area/part/settings_page.php
    • > /wp-content/plugins/cloud-customer-area/part/settings_page_customize.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: documents exchange, google drive, customers area, reserved area, cloud integration

cloud-customer-area/cloud-customer-area.php 92% from 13 tests

"Cloud Customer Area" version 2.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,035 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP71031571,013
SVG10018
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity56.50
▷ Minimum class complexity20.00
▷ Maximum class complexity93.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2275.86%
▷ Protected methods00.00%
▷ Private methods724.14%
Functions15
▷ Named functions00.00%
▷ Anonymous functions15100.00%
Constants6
▷ Global constants6100.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
No PNG files were detected