84% roomcloud

Code Review | Roomcloud

WordPress plugin Roomcloud scored 84% from 54 tests.

About plugin

  • Plugin page: roomcloud
  • Plugin version: 2.0.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 16, 2014
  • Latest release: Jun 23, 2023
  • Number of updates: 52
  • Update frequency: every 62.2 days
  • Top authors: roomcloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,649 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.00MB] [CPU: ▼1.63ms] Passed 4 tests

An overview of server-side resources used by Roomcloud
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.72 ▼4.19
Dashboard /wp-admin3.31 ▲0.0145.70 ▼2.84
Posts /wp-admin/edit.php3.36 ▲0.0045.08 ▲0.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.24 ▲1.45
Media Library /wp-admin/upload.php3.23 ▲0.0034.47 ▲0.22

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Roomcloud: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.191.68 ▼0.0340.35 ▼2.74
Dashboard /wp-admin2,200 ▲115.81 ▲0.7898.57 ▼6.7538.72 ▲0.83
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0838.64 ▲3.1535.00 ▲2.55
Add New Post /wp-admin/post-new.php1,519 ▼123.39 ▲0.03640.00 ▲51.1659.60 ▲10.63
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.03104.90 ▼0.3744.84 ▲0.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/roomcloud/roomcloud.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires php: Invalid plugin version format
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === roomcloud === )
The official readme.txt is a good inspiration

roomcloud/roomcloud.php Passed 13 tests

The main PHP script in "Roomcloud" version 2.0.15 is automatically included on every request by WordPress
83 characters long description:
A Plugin to add roomcloud booking form to hotel website using [roomcloud] shortcode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin7,624 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS71,011274,206
PHP1928291,852
JavaScript81,2241071,566

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin