74% appointify

Code Review | Appointify

WordPress plugin Appointify scored74%from 54 tests.

About plugin

  • Plugin page: appointify
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.9.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: May 10, 2022
  • Number of updates: 11
  • Update frequency: every 20.7 days
  • Top authors: appointify (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /4,643 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.16MB] [CPU: ▼3.08ms] Passed 4 tests

This is a short check of server-side resources used by Appointify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1643.39 ▲5.30
Dashboard /wp-admin3.47 ▲0.1746.14 ▼3.69
Posts /wp-admin/edit.php3.59 ▲0.2355.20 ▲8.05
Add New Post /wp-admin/post-new.php6.05 ▲0.1681.47 ▼15.87
Media Library /wp-admin/upload.php3.40 ▲0.1634.35 ▲1.93
Settings /wp-admin/admin.php?page=appointify-settings3.4634.43
Appointify /wp-admin/admin.php?page=appointify3.5333.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 831 new files
Database: 3 new tables, 7 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Appointify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18513.56 ▼0.847.19 ▲5.1538.56 ▼6.35
Dashboard /wp-admin2,223 ▲805.83 ▲0.22106.63 ▲6.2536.75 ▼5.96
Posts /wp-admin/edit.php2,112 ▲232.01 ▼0.0539.88 ▲2.9936.61 ▲0.29
Add New Post /wp-admin/post-new.php1,533 ▲1917.66 ▲0.00667.45 ▼12.2960.15 ▲9.64
Media Library /wp-admin/upload.php1,414 ▲234.23 ▲0.0495.50 ▼17.2147.41 ▲1.92
Settings /wp-admin/admin.php?page=appointify-settings8691.9430.1769.76
Appointify /wp-admin/admin.php?page=appointify2,3692.1639.9843.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 3 tables
    • wp_tbl_events
    • wp_holidays
    • wp_user_data
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • calendar_working_hr
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 420× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Event\\SubscriberInterface' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/google/auth/src/Subscriber/AuthTokenSubscriber.php:37
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/guzzlehttp/guzzle/src/Pool.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/guzzlehttp/psr7/src/CachingStream.php:13
    • > PHP Warning
      Class 'Google\\AuthHandler\\AuthHandlerFactory' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/google/apiclient/src/aliases.php on line 33
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\Common\\Formats\\Keys\\PuTTY' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/PuTTY.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Montgomery' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/Montgomery.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP384t1.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Math\\BigInteger\\Engines\\BCMath\\Base' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/BCMath/Reductions/Barrett.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib3\\Crypt\\DSA' not found in wp-content/plugins/appointify/includes/calendar_google/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/PrivateKey.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: "appointify.app"
You can look at the official readme.txt

appointify/appointify.php Passed 13 tests

"Appointify" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Most scheduling tools put the burden on the recipient.

Code Analysis 97% from 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
No dangerous file extensions were detected76,555 lines of code in 762 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.32
▷ Minimum class complexity1.00
▷ Maximum class complexity660.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
▷ Abstract classes21432.33%
▷ Concrete classes44867.67%
▷ Final classes398.71%
▷ Static methods65117.40%
▷ Public methods2,88176.99%
▷ Protected methods38410.26%
▷ Private methods47712.75%
▷ Named functions6231.31%
▷ Anonymous functions13668.69%
▷ Global constants112.25%
▷ Class constants47897.75%
▷ Public constants45795.61%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png64.53KB26.67KB▼ 58.67%