78% wilapp

Code Review | Wilapp

WordPress plugin Wilapp scored78%from 54 tests.

About plugin

  • Plugin page: wilapp
  • Plugin version: 1.3.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 11
  • Update frequency: every 20.1 days
  • Top authors: wilapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲1.23ms] Passed 4 tests

Server-side resources used by Wilapp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.93 ▲2.11
Dashboard /wp-admin3.43 ▲0.1352.44 ▼0.40
Posts /wp-admin/edit.php3.55 ▲0.1950.12 ▲0.87
Add New Post /wp-admin/post-new.php6.01 ▲0.1398.47 ▲4.48
Media Library /wp-admin/upload.php3.36 ▲0.1339.00 ▲2.34
Wilapp /wp-admin/options-general.php?page=wilapp-options3.32442.45

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

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

Browser metrics Passed 4 tests

Wilapp: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.25 ▼0.955.43 ▲3.5040.76 ▼0.11
Dashboard /wp-admin2,212 ▲215.86 ▲1.00109.80 ▲2.4943.24 ▲0.12
Posts /wp-admin/edit.php2,102 ▲102.00 ▼0.0439.83 ▼1.4435.04 ▼0.97
Add New Post /wp-admin/post-new.php1,533 ▲1923.28 ▲5.71637.12 ▲12.6951.34 ▲0.84
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0099.75 ▼9.2341.23 ▼5.37
Wilapp /wp-admin/options-general.php?page=wilapp-options9062.1823.7025.17

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wilapp-options
    • > Notice in wp-content/plugins/wilapp/includes/class-wilapp-admin-settings.php+293
    Trying to access array offset on value of type bool

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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wilapp/wilapp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: appointments, booking system, service, booking, calendar

wilapp/wilapp.php 77% from 13 tests

The main file in "Wilapp" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "5.4")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("5.6" instead of "7.4")
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected1,247 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP4103277663
CSS28310405
JavaScript1153100
SVG42079

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity31.67
▷ Minimum class complexity11.00
▷ Maximum class complexity45.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected