77% cloodo-worksuite

Code Review | Worksuite WP – ERP, Workplace, CRM, HRM, Project Manager & Company Board

WordPress plugin Worksuite WP – ERP, Workplace, CRM, HRM, Project Manager & Company Board scored77%from 54 tests.

About plugin

  • Plugin page: cloodo-worksuite
  • Plugin version: 2.2.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2022
  • Latest release: Aug 4, 2023
  • Number of updates: 22
  • Update frequency: every 14.6 days
  • Top authors: cloodoteam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,783 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.41ms] Passed 4 tests

Server-side resources used by Worksuite WP – ERP, Workplace, CRM, HRM, Project Manager & Company Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.88 ▲3.35
Dashboard /wp-admin3.39 ▲0.0445.33 ▼16.68
Posts /wp-admin/edit.php3.44 ▲0.0848.50 ▲3.85
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.18 ▼17.59
Media Library /wp-admin/upload.php3.31 ▲0.0832.70 ▼2.73

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Worksuite WP – ERP, Workplace, CRM, HRM, Project Manager & Company Board
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.08 ▼0.471.76 ▼0.1343.71 ▲3.27
Dashboard /wp-admin2,223 ▲485.58 ▼0.0284.57 ▼11.4139.10 ▼3.42
Posts /wp-admin/edit.php2,131 ▲342.01 ▲0.0135.91 ▲0.4835.22 ▲1.15
Add New Post /wp-admin/post-new.php1,560 ▲3218.34 ▼4.74608.86 ▼29.9277.12 ▲20.86
Media Library /wp-admin/upload.php1,431 ▲344.18 ▼0.0299.79 ▼0.8241.90 ▼2.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 7× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/cloodo-worksuite/includes/clws-api.php
    • > /wp-content/plugins/cloodo-worksuite/includes/settings.php
    • > /wp-content/plugins/cloodo-worksuite/includes/dashboard.php
    • > /wp-content/plugins/cloodo-worksuite/cloodo-worksuite.php
    • > /wp-content/plugins/cloodo-worksuite/includes/products.php
    • > /wp-content/plugins/cloodo-worksuite/includes/employees.php
    • > /wp-content/plugins/cloodo-worksuite/includes/client.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloodo-worksuite/includes/support.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cloodo-worksuite/includes/cloodo_core.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #3, #4, #5, #6, #7, #8, #9 in cloodo-worksuite/assets to your readme.txt
The official readme.txt might help

cloodo-worksuite/cloodo-worksuite.php 77% from 13 tests

"Worksuite WP – ERP, Workplace, CRM, HRM, Project Manager & Company Board" version 2.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.3")

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
Everything looks great! No dangerous files found in this plugin55,024 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS107,32013550,157
JavaScript43145913,659
PHP9130591,208

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1161.11%
▷ Anonymous functions738.89%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/image/close.png0.66KB0.44KB▼ 33.14%
admin/image/default-user.png8.54KB5.14KB▼ 39.85%