Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.49MB] [CPU: ▲37.62ms] Passed 4 tests
This is a short check of server-side resources used by Docpro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.63 ▲3.16 | 108.01 ▲64.51 |
Dashboard /wp-admin | 6.42 ▲3.07 | 119.82 ▲57.80 |
Posts /wp-admin/edit.php | 6.47 ▲3.11 | 114.16 ▲62.37 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 69.47 ▼34.21 |
Media Library /wp-admin/upload.php | 6.39 ▲3.16 | 109.63 ▲70.41 |
Server storage [IO: ▲17.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 365 new files
Database: no new tables, 8 new options
New WordPress options |
---|
docpro_settings |
widget_recent-posts |
docpro_page_profiles |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Docpro: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,496 ▲750 | 17.41 ▲3.15 | 28.70 ▲26.98 | 46.94 ▲3.24 |
Dashboard /wp-admin | 2,504 ▲316 | 6.99 ▲1.88 | 136.22 ▲34.68 | 42.98 ▼0.17 |
Posts /wp-admin/edit.php | 2,411 ▲322 | 3.85 ▲1.85 | 52.13 ▲16.23 | 33.70 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,648 ▲111 | 23.39 ▲0.03 | 621.26 ▼51.12 | 34.45 ▼20.59 |
Media Library /wp-admin/upload.php | 1,551 ▲163 | 4.75 ▲0.52 | 84.25 ▼33.61 | 44.22 ▼3.86 |
Clinic Settings /wp-admin/admin.php?page=docpro#tab=clinic-settings | 1,527 | 3.74 | 62.83 | 40.47 |
Settings /wp-admin/admin.php?page=docpro#tab=settings | 1,540 | 3.74 | 52.35 | 32.66 |
Booking Options /wp-admin/admin.php?page=docpro#tab=booking-options | 1,528 | 3.73 | 58.87 | 33.51 |
Doctors Settings /wp-admin/admin.php?page=docpro#tab=doctors-settings | 1,530 | 3.49 | 50.07 | 29.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- docpro_settings
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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 items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DOCPRO_User_base' not found in wp-content/plugins/docpro/includes/classes/class-user-patient.php:19
- > PHP Fatal error
Uncaught Error: Class 'DOCPRO_User_base' not found in wp-content/plugins/docpro/includes/classes/class-user-doctor.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/docpro/includes/classes/class-template-loader.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/docpro/includes/classes/class-hooks.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_User' not found in wp-content/plugins/docpro/includes/classes/class-user-base.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/docpro/includes/functions-template.php:6
- > PHP Fatal error
Uncaught Error: Class 'DOCPRO_User_base' not found in wp-content/plugins/docpro/includes/classes/class-user-clinic.php:22
- > PHP Fatal error
Uncaught Error: Class 'CSF' not found in wp-content/plugins/docpro/includes/classes/class-csf-extended.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function docpro() in wp-content/plugins/docpro/includes/classes/class-shortcodes.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function docpro() in wp-content/plugins/docpro/includes/classes/class-meta-boxes.php:796
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
There were no plugin tags found
docpro/docpro.php 92% from 13 tests
The principal PHP file in "Docpro" v. 2.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
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 plugin86,691 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 0 | 16 | 30,201 |
CSS | 19 | 5,967 | 709 | 29,606 |
PHP | 165 | 4,116 | 2,923 | 15,361 |
PO File | 20 | 3,197 | 3,594 | 6,534 |
JavaScript | 13 | 1,396 | 653 | 4,989 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 27.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 312.00 |
Average method complexity | 5.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 2 | 2.67% |
▷ Concrete classes | 73 | 97.33% |
▷ Final classes | 5 | 6.85% |
Methods | 445 | |
▷ Static methods | 50 | 11.24% |
▷ Public methods | 427 | 95.96% |
▷ Protected methods | 1 | 0.22% |
▷ Private methods | 17 | 3.82% |
Functions | 65 | |
▷ Named functions | 55 | 84.62% |
▷ Anonymous functions | 10 | 15.38% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
94 PNG files occupy 0.59MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/shape/shape-56.png | 1.75KB | 0.45KB | ▼ 74.18% |
assets/images/shape/shape-59.png | 2.82KB | 0.98KB | ▼ 65.35% |
assets/images/shape/shape-33.png | 9.61KB | 5.59KB | ▼ 41.82% |
assets/images/shape/shape-23.png | 11.60KB | 4.86KB | ▼ 58.10% |
assets/images/shape/shape-74.png | 4.92KB | 2.31KB | ▼ 53.08% |