72% roomvu-marketing

Code Review | Roomvu Marketing

WordPress plugin Roomvu Marketing scored72%from 54 tests.

About plugin

  • Plugin page: roomvu-marketing
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Aug 29, 2023
  • Number of updates: 6
  • Update frequency: every 38.3 days
  • Top authors: roomvuservices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /816 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.53ms] Passed 4 tests

A check of server-side resources used by Roomvu Marketing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.92 ▼5.95
Dashboard /wp-admin3.38 ▲0.0845.07 ▼2.93
Posts /wp-admin/edit.php3.49 ▲0.1451.35 ▲5.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0797.33 ▼0.30
Media Library /wp-admin/upload.php3.30 ▲0.0739.27 ▲3.06
Roomvu Marketing /wp-admin/edit.php?page=roomvu-marketing3.31265.65

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
rvm_cron_text
rvm_cron_text_runs
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Roomvu Marketing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.59 ▼0.761.61 ▼0.1940.92 ▼7.30
Dashboard /wp-admin2,207 ▲164.85 ▼1.05108.31 ▲3.0843.25 ▲0.95
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0338.62 ▼3.7335.93 ▲0.05
Add New Post /wp-admin/post-new.php1,517 ▼217.66 ▼5.41649.35 ▲16.6451.58 ▲0.13
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.06101.62 ▲2.5046.55 ▲4.70
Roomvu Marketing /wp-admin/edit.php?page=roomvu-marketing9542.0521.9126.87

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
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • rvm_cron_text_runs
    • rvm_cron_text
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/roomvu-marketing/views/post.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: post_type in wp-content/plugins/roomvu-marketing/views/post.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roomvu-marketing/roomvu.php:19
    • > PHP Notice
      Undefined variable: post_type in wp-content/plugins/roomvu-marketing/views/post.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/roomvu-marketing/views/settings.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/roomvu-marketing/views/success.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?page=roomvu-marketing
    • > Network (severe)
    wp-content/plugins/roomvu-marketing//assets/image/logo.svg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Plugin Settings Page) image not found
You can look at the official readme.txt

roomvu-marketing/roomvu.php 85% from 13 tests

Analyzing the main PHP file in "Roomvu Marketing" version 1.3.0
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("roomvu-marketing.php" instead of "roomvu.php")

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
Success! There were no dangerous files found in this plugin686 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP910282559
CSS1181127

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods28
▷ Static methods00.00%
▷ Public methods2175.00%
▷ Protected methods621.43%
▷ Private methods13.57%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin