84% wdv-add-services-and-events

Code Review | WDV - Add Services and Events

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

About plugin

  • Plugin page: wdv-add-services-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 27, 2019
  • Latest release: Jun 19, 2022
  • Number of updates: 15
  • Update frequency: every 70.5 days
  • Top authors: vrpr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▲1.04ms] Passed 4 tests

An overview of server-side resources used by WDV - Add Services and Events
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1348.15 ▲3.85
Dashboard /wp-admin3.42 ▲0.1251.08 ▼5.04
Posts /wp-admin/edit.php3.47 ▲0.1251.09 ▲1.15
Add New Post /wp-admin/post-new.php6.39 ▲0.50100.25 ▲6.46
Media Library /wp-admin/upload.php3.34 ▲0.1239.10 ▲4.18
Restaurants /wp-admin/edit.php?post_type=restaurant3.3937.01
Abouts /wp-admin/edit.php?post_type=about3.3937.40
Events /wp-admin/edit.php?post_type=event3.3935.68
Advertisements /wp-admin/edit.php?post_type=advertisement3.3937.24
Add New /wp-admin/post-new.php?post_type=advertisement6.3782.66
Add New /wp-admin/post-new.php?post_type=event6.3785.13
Add New /wp-admin/post-new.php?post_type=restaurant6.3791.93
Services /wp-admin/edit.php?post_type=services3.3938.67
Add New /wp-admin/post-new.php?post_type=services6.3783.83
Add New /wp-admin/post-new.php?post_type=testimonial6.3783.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WDV - Add Services and Events
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,058 ▲31213.82 ▼0.538.57 ▲6.9741.37 ▼2.50
Dashboard /wp-admin2,366 ▲1865.64 ▼0.0390.63 ▼0.7741.90 ▼5.50
Posts /wp-admin/edit.php2,268 ▲1682.02 ▲0.0340.01 ▲2.2734.51 ▼3.27
Add New Post /wp-admin/post-new.php1,678 ▲15018.63 ▼4.51611.23 ▼115.3071.27 ▲7.29
Media Library /wp-admin/upload.php1,568 ▲1714.22 ▲0.03100.80 ▼0.9044.81 ▼2.93
Restaurants /wp-admin/edit.php?post_type=restaurant1,2461.9634.6430.98
Abouts /wp-admin/edit.php?post_type=about1,2381.9633.4829.01
Events /wp-admin/edit.php?post_type=event1,2411.9630.7631.78
Advertisements /wp-admin/edit.php?post_type=advertisement1,2411.9830.2031.42
Add New /wp-admin/post-new.php?post_type=advertisement1,64816.92844.1030.38
Add New /wp-admin/post-new.php?post_type=event6,31522.89796.2229.45
Add New /wp-admin/post-new.php?post_type=restaurant1,64816.92781.2632.64
Services /wp-admin/edit.php?post_type=services1,2381.9733.1630.68
Add New /wp-admin/post-new.php?post_type=services1,64116.92755.9627.50
Add New /wp-admin/post-new.php?post_type=testimonial6,31522.76808.3729.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wdv-add-services-and-events/admin/partials/wdv-add-services-and-events-admin-display.php
    • > /wp-content/plugins/wdv-add-services-and-events/public/partials/wdv-add-services-and-events-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: post types, custom post types

wdv-add-services-and-events/wdv-add-services-and-events.php Passed 13 tests

The main file in "WDV - Add Services and Events" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
117 characters long description:
The plugin "WDV - Add Services and Events" added custom post types "Services" and "Events" to WP theme "Aniro Hotel".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin17,018 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,882
CSS153,512647,777
PHP12160587353
JavaScript24546

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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.10
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods827.59%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected