68% appointmentsw

Code Review | AppointmentSW

WordPress plugin AppointmentSW scored68%from 54 tests.

About plugin

  • Plugin page: appointmentsw
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Dec 26, 2016
  • Number of updates: 10
  • Update frequency: every 20.6 days
  • Top authors: eggemplo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,491 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by AppointmentSW
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2843.72 ▲0.87
Dashboard /wp-admin3.59 ▲0.2854.07 ▲3.14
Posts /wp-admin/edit.php3.70 ▲0.3450.54 ▼1.78
Add New Post /wp-admin/post-new.php6.17 ▲0.2893.45 ▲1.63
Media Library /wp-admin/upload.php3.51 ▲0.2841.01 ▼1.42
Pages /wp-admin/admin.php?page=appointmentsw-pages3.4735.47
Appointment SW /wp-admin/admin.php?page=appointmentsw3.4738.21
Appointments /wp-admin/admin.php?page=appointmentsw-admin-appointments3.4944.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: 2 new tables, 6 new options
New tables
wp_appointmentsw_book
wp_appointmentsw_holidays
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for AppointmentSW
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15313.45 ▼0.9810.75 ▲9.0659.57 ▲14.79
Dashboard /wp-admin2,229 ▲585.66 ▼0.0499.09 ▲6.5142.94 ▼4.34
Posts /wp-admin/edit.php2,131 ▲312.04 ▲0.0337.15 ▲0.4932.62 ▼6.47
Add New Post /wp-admin/post-new.php1,556 ▲1123.19 ▲0.22643.29 ▼42.2169.52 ▼10.22
Media Library /wp-admin/upload.php1,425 ▲284.25 ▼0.03101.07 ▼1.4342.95 ▼2.80
Pages /wp-admin/admin.php?page=appointmentsw-pages8272.0524.5750.94
Appointment SW /wp-admin/admin.php?page=appointmentsw9502.0522.8924.79
Appointments /wp-admin/admin.php?page=appointmentsw-admin-appointments1,2681.7227.8561.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 2 tables in the database
    • wp_appointmentsw_holidays
    • wp_appointmentsw_book
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% 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 | 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 take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/appointmentsw/core/class-appointmentsw-shortcodes.php:29
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/appointmentsw/appointmentsw.php on line 37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/appointmentsw/appointmentsw.php:40

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=appointmentsw-admin-appointments
    • > Javascript (severe) in unknown
    /wp-content/plugins/appointmentsw//bootstrap/bootstrap.min.js?ver=6.3.1 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3

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
4 plugin tags: business, appointment, hours, clients

appointmentsw/appointmentsw.php Passed 13 tests

The principal PHP file in "AppointmentSW" v. 1.2 is loaded by WordPress automatically on each request
26 characters long description:
Simple appointments system

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,590 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP54003021,348
CSS42922149
PO File1419258
JavaScript2111235

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity41.80
▷ Minimum class complexity5.00
▷ Maximum class complexity70.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods50
▷ Static methods4386.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin