78% configure-conference-room

Code Review | WP Virtual Room Configurator

WordPress plugin WP Virtual Room Configurator scored78%from 54 tests.

About plugin

  • Plugin page: configure-confere...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Aug 8, 2018
  • Latest release: Aug 8, 2018
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: codemenschen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.89ms] Passed 4 tests

An overview of server-side resources used by WP Virtual Room Configurator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.96 ▼1.78
Dashboard /wp-admin3.39 ▲0.0949.32 ▲1.29
Posts /wp-admin/edit.php3.51 ▲0.1653.11 ▲2.54
Add New Post /wp-admin/post-new.php5.98 ▲0.1095.01 ▲4.61
Media Library /wp-admin/upload.php3.30 ▲0.0735.16 ▲1.49
Add New Object /wp-admin/post-new.php?post_type=ccr_images3.2232.36
Rooms /wp-admin/edit.php?post_type=ccr_room3.3739.34
Object Categories /wp-admin/edit-tags.php?taxonomy=images_type&post_type=ccr_images3.3836.71
Objects /wp-admin/edit.php?post_type=ccr_images3.3734.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Virtual Room Configurator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,097 ▲36215.46 ▲1.047.29 ▲5.3939.58 ▼9.02
Dashboard /wp-admin2,388 ▲2006.48 ▲1.60132.15 ▲21.7940.15 ▼3.44
Posts /wp-admin/edit.php2,297 ▲2083.39 ▲1.3555.35 ▲14.6733.94 ▼2.31
Add New Post /wp-admin/post-new.php1,572 ▲5823.14 ▲5.49590.61 ▼48.4333.95 ▼23.29
Media Library /wp-admin/upload.php1,424 ▲394.15 ▼0.0580.73 ▼25.6543.05 ▲0.29
Add New Object /wp-admin/post-new.php?post_type=ccr_images2,3897.79199.3668.44
Rooms /wp-admin/edit.php?post_type=ccr_room1,2703.4165.8126.91
Object Categories /wp-admin/edit-tags.php?taxonomy=images_type&post_type=ccr_images1,5273.2642.3628.02
Objects /wp-admin/edit.php?post_type=ccr_images1,2783.2950.3828.64

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=ccr_images
    • > Notice in wp-content/plugins/configure-conference-room/configure-conference-room.php+514
    Undefined index: is_day_night
    • > GET request to /wp-admin/post-new.php?post_type=ccr_images
    • > Notice in wp-content/plugins/configure-conference-room/configure-conference-room.php+525
    Undefined index: device_order

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/configure-conference-room/multi-post-thumbnails.php:441

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: highlightable areas, floor plans, event conference room planner, conference rooms, interactive virtual rooms

configure-conference-room/configure-conference-room.php 92% from 13 tests

The primary PHP file in "WP Virtual Room Configurator" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,574 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP3117176918
JavaScript57526391
CSS2163265

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.80
▷ Minimum class complexity9.00
▷ Maximum class complexity48.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods614.29%
▷ Public methods4095.24%
▷ Protected methods00.00%
▷ Private methods24.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin