Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▼0.03ms] Passed 4 tests
An overview of server-side resources used by BizCalendar Web
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.01 | 40.92 ▲4.01 |
Dashboard /wp-admin | 4.30 ▲0.96 | 48.41 ▼10.73 |
Posts /wp-admin/edit.php | 4.36 ▲1.00 | 57.72 ▲13.16 |
Add New Post /wp-admin/post-new.php | 6.84 ▲0.95 | 84.60 ▼0.42 |
Media Library /wp-admin/upload.php | 4.17 ▲0.93 | 41.07 ▲7.03 |
Server storage [IO: ▲11.61MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 210 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_bizcal_request_log |
wp_bizcal_physicians_description |
wp_bizcal_medical_specialities |
wp_bizcal_prices |
wp_bizcal_medical_services |
wp_bizcal_physicians |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
setrio_bizcal_old_version |
db_upgraded |
setrio-bizcalendar-db-version |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BizCalendar Web
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.73 ▲0.38 | 1.71 ▲0.03 | 38.56 ▼2.17 |
Dashboard /wp-admin | 2,222 ▲45 | 6.57 ▲0.97 | 119.96 ▲31.67 | 40.12 ▼0.42 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 3.36 ▲1.35 | 80.13 ▲41.76 | 37.10 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 24.16 ▲1.01 | 680.48 ▲29.84 | 56.77 ▲0.50 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 5.16 ▲0.94 | 129.18 ▲34.63 | 44.05 ▼1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure failed, leaving 6 tables in the database
- wp_bizcal_physicians
- wp_bizcal_prices
- wp_bizcal_physicians_description
- wp_bizcal_medical_specialities
- wp_bizcal_request_log
- wp_bizcal_medical_services
- Zombie WordPress options were found after uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- setrio-bizcalendar-db-version
- db_upgraded
- setrio_bizcal_old_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/bizcalendar-web/main.php
- > /wp-content/plugins/bizcalendar-web/admin/vuethemeroller.php
- > /wp-content/plugins/bizcalendar-web/templates/vue/part/progress.php
- > /wp-content/plugins/bizcalendar-web/setup.php
- > /wp-content/plugins/bizcalendar-web/localdata.php
- > /wp-content/plugins/bizcalendar-web/bizcalendar.php
- > /wp-content/plugins/bizcalendar-web/common.php
- > /wp-content/plugins/bizcalendar-web/admin/jqueryuithemeroller.php
- 54× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/notify-alert.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_get_arr_val() in wp-content/plugins/bizcalendar-web/templates/vue/part/physician.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_get_template_part() in wp-content/plugins/bizcalendar-web/templates/vue/inline-1-column.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-fail.php:7
- > PHP Notice
Undefined index: SCRIPT_URI in wp-content/plugins/bizcalendar-web/admin/vuethemeroller.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-errors.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/availability-panels.php:50
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bizcalendar-web/admin/bizcalendar-admin.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bizcalendar-web/admin/bizcalendar-admin.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function setrio_bizcal_message() in wp-content/plugins/bizcalendar-web/templates/vue/part/submit-dialog-success.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: setrio bizmedica bizcalendar online appointments programari
bizcalendar-web/bizcalendar.php 85% from 13 tests
The main PHP script in "BizCalendar Web" version 1.1.0.15 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("bizcalendar-web.php" instead of "bizcalendar.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin164,204 lines of code in 154 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 80 | 13,202 | 7,833 | 78,716 |
CSS | 18 | 10,231 | 377 | 46,557 |
JSON | 1 | 0 | 0 | 30,887 |
PHP | 55 | 766 | 807 | 8,044 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 120)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 120.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 32 | 32.99% |
▷ Public methods | 88 | 90.72% |
▷ Protected methods | 1 | 1.03% |
▷ Private methods | 8 | 8.25% |
Functions | 52 | |
▷ Named functions | 46 | 88.46% |
▷ Anonymous functions | 6 | 11.54% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
42 PNG files occupy 0.35MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
css/images/hand.png | 147.77KB | 150.25KB | 0.00% |
css/jquery-ui-custom/images/ui-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
css/images/ui-icons_3d80b3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |