84% wdv-add-services-events-rooms

Code Review | WDV - Add Services, Events, Rooms

WordPress plugin WDV - Add Services, Events, Rooms scored84%from 54 tests.

About plugin

  • Plugin page: wdv-add-services-...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Jun 19, 2022
  • Number of updates: 13
  • Update frequency: every 79.4 days
  • Top authors: vrpr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼3.65ms] Passed 4 tests

Server-side resources used by WDV - Add Services, Events, Rooms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1738.01 ▼2.36
Dashboard /wp-admin3.46 ▲0.1646.11 ▼1.77
Posts /wp-admin/edit.php3.57 ▲0.2245.83 ▼1.53
Add New Post /wp-admin/post-new.php6.37 ▲0.4885.75 ▼6.95
Media Library /wp-admin/upload.php3.38 ▲0.1532.36 ▼3.52
Testimonials /wp-admin/edit.php?post_type=testimonial3.4236.74
Services /wp-admin/edit.php?post_type=services3.4234.59
Add New /wp-admin/post-new.php?post_type=services6.3580.79
Abouts /wp-admin/edit.php?post_type=about3.4234.11
Advertisements /wp-admin/edit.php?post_type=advertisement3.4234.06
Add New /wp-admin/post-new.php?post_type=advertisement6.3577.96
Add New /wp-admin/post-new.php?post_type=rooms6.3581.60
Add New /wp-admin/post-new.php?post_type=about6.3581.56
Rooms /wp-admin/edit.php?post_type=rooms3.4236.10
Add New /wp-admin/post-new.php?post_type=testimonial6.3578.77

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WDV - Add Services, Events, Rooms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,064 ▲31813.98 ▼0.778.15 ▲6.3836.32 ▼7.37
Dashboard /wp-admin2,341 ▲1535.85 ▼0.04101.52 ▼15.1538.68 ▼6.17
Posts /wp-admin/edit.php2,227 ▲1382.03 ▼0.0235.38 ▼0.0931.64 ▼4.08
Add New Post /wp-admin/post-new.php1,635 ▲11617.87 ▼5.47638.26 ▼31.6449.81 ▼12.28
Media Library /wp-admin/upload.php1,526 ▲1354.31 ▲0.0695.02 ▼15.7240.68 ▼8.31
Testimonials /wp-admin/edit.php?post_type=testimonial1,2002.0031.1430.86
Services /wp-admin/edit.php?post_type=services1,2032.0132.3528.16
Add New /wp-admin/post-new.php?post_type=services6,27622.96806.3425.34
Abouts /wp-admin/edit.php?post_type=about1,2002.0132.2534.26
Advertisements /wp-admin/edit.php?post_type=advertisement1,1821.9832.6227.63
Add New /wp-admin/post-new.php?post_type=advertisement1,61316.92747.8733.10
Add New /wp-admin/post-new.php?post_type=rooms1,61316.92760.6329.51
Add New /wp-admin/post-new.php?post_type=about6,28024.50764.4728.80
Rooms /wp-admin/edit.php?post_type=rooms1,2001.9831.3229.71
Add New /wp-admin/post-new.php?post_type=testimonial1,61316.91709.1027.99

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wdv-add-services-events-rooms/admin/partials/wdv-add-services-events-rooms-admin-display.php
    • > /wp-content/plugins/wdv-add-services-events-rooms/public/partials/wdv-add-services-events-rooms-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: The official readme.txt might help

wdv-add-services-events-rooms/wdv-add-services-events-rooms.php 92% from 13 tests

"WDV - Add Services, Events, Rooms" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)

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 detected16,989 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,882
CSS163,512687,777
PHP12131551322
JavaScript24546
Markdown1002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods725.00%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin