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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 43.72 ▲0.87 |
Dashboard /wp-admin | 3.59 ▲0.28 | 54.07 ▲3.14 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 50.54 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.45 ▲1.63 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 41.01 ▼1.42 |
Pages /wp-admin/admin.php?page=appointmentsw-pages | 3.47 | 35.47 |
Appointment SW /wp-admin/admin.php?page=appointmentsw | 3.47 | 38.21 |
Appointments /wp-admin/admin.php?page=appointmentsw-admin-appointments | 3.49 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.45 ▼0.98 | 10.75 ▲9.06 | 59.57 ▲14.79 |
Dashboard /wp-admin | 2,229 ▲58 | 5.66 ▼0.04 | 99.09 ▲6.51 | 42.94 ▼4.34 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.04 ▲0.03 | 37.15 ▲0.49 | 32.62 ▼6.47 |
Add New Post /wp-admin/post-new.php | 1,556 ▲11 | 23.19 ▲0.22 | 643.29 ▼42.21 | 69.52 ▼10.22 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.25 ▼0.03 | 101.07 ▼1.43 | 42.95 ▼2.80 |
Pages /wp-admin/admin.php?page=appointmentsw-pages | 827 | 2.05 | 24.57 | 50.94 |
Appointment SW /wp-admin/admin.php?page=appointmentsw | 950 | 2.05 | 22.89 | 24.79 |
Appointments /wp-admin/admin.php?page=appointmentsw-admin-appointments | 1,268 | 1.72 | 27.85 | 61.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 400 | 302 | 1,348 |
CSS | 4 | 29 | 22 | 149 |
PO File | 1 | 41 | 92 | 58 |
JavaScript | 2 | 11 | 12 | 35 |
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 code | 0.28 |
Average class complexity | 41.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 5.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 43 | 86.00% |
▷ Public methods | 45 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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