62% appointmind

Code Review | Appointmind

WordPress plugin Appointmind scored62%from 54 tests.

About plugin

  • Plugin page: appointmind
  • Plugin version: 3.10.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-6.2
  • WordPress version: 6.3.1
  • First release: Jun 22, 2012
  • Latest release: Apr 18, 2023
  • Number of updates: 44
  • Update frequency: every 89.8 days
  • Top authors: GentleSource (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /8,147 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.89MB] [CPU: ▼32.58ms] Passed 4 tests

An overview of server-side resources used by Appointmind
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.25 ▼1.63
Dashboard /wp-admin3.05 ▼0.2530.24 ▼23.84
Posts /wp-admin/edit.php3.06 ▼0.3123.18 ▼26.90
Add New Post /wp-admin/post-new.php3.06 ▼2.8429.04 ▼65.45
Media Library /wp-admin/upload.php3.06 ▼0.1822.02 ▼14.12
Appointmind Calendar /wp-admin/options-general.php?page=appointmind-settings3.0625.13

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
widget_appointmind_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Appointmind
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲9113.66 ▼0.998.37 ▲6.0542.38 ▼2.63
Dashboard /wp-admin2,202 ▲285.61 ▼0.0594.30 ▼5.5541.67 ▼1.74
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0134.08 ▼1.9134.92 ▼0.51
Add New Post /wp-admin/post-new.php1,531 ▲523.23 ▼0.03695.28 ▲56.2164.54 ▲9.08
Media Library /wp-admin/upload.php1,401 ▲14.28 ▲0.12100.38 ▼1.4945.52 ▼0.03
Appointmind Calendar /wp-admin/options-general.php?page=appointmind-settings9141.9921.5328.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_appointmind_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=appointmind-settings
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/appointmind/templates/article_order_form.php
  • 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/appointmind/widget.php:5
    • > PHP Notice
      Undefined variable: before_title in wp-content/plugins/appointmind/templates/widget.php on line 2
    • > PHP Notice
      Undefined variable: appointmindUrlParameters in wp-content/plugins/appointmind/templates/article_calendar.php on line 2
    • > PHP Notice
      Undefined variable: view in wp-content/plugins/appointmind/templates/article_calendar.php on line 3
    • > PHP Notice
      Undefined variable: view in wp-content/plugins/appointmind/templates/article_order_form.php on line 4
    • > PHP Notice
      Trying to get property 'iframeWidth' of non-object in wp-content/plugins/appointmind/templates/article_order_form.php on line 4
    • > PHP Notice
      Undefined variable: view in wp-content/plugins/appointmind/templates/article_calendar.php on line 3
    • > PHP Notice
      Undefined variable: appointmindUrlDomain in wp-content/plugins/appointmind/templates/article_calendar.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/appointmind/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/appointmind/templates/general_settings.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Appointmind settings page)
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

appointmind/appointmind.php 92% from 13 tests

The main file in "Appointmind" v. 3.10.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 448 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected410 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP89899354
PO File122055
JavaScript1171

PHP code Passed 2 tests

Analyzing 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.22
Average class complexity9.33
▷ Minimum class complexity4.00
▷ Maximum class complexity17.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1986.36%
▷ Protected methods00.00%
▷ Private methods313.64%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png39.73KB21.61KB▼ 45.60%
images/calendar.png3.23KB3.03KB▼ 5.96%