Benchmarks
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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.93ms] Passed 4 tests
Server-side resources used by Dental Focus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 46.06 ▲1.01 |
Dashboard /wp-admin | 3.52 ▲0.17 | 53.34 ▼10.35 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 57.59 ▲7.03 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 99.50 ▼9.41 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 45.31 ▲7.43 |
Team Categories /wp-admin/edit-tags.php?taxonomy=df-team-categories&post_type=df-team | 3.43 | 38.06 |
All Treatment /wp-admin/edit.php?post_type=df-treatment | 3.48 | 44.02 |
Treatment Categories /wp-admin/edit-tags.php?taxonomy=df-treatment-categories&post_type=df-treatment | 3.43 | 35.79 |
All Team /wp-admin/edit.php?post_type=df-team | 3.48 | 42.68 |
All Banner /wp-admin/edit.php?post_type=df-banner | 3.48 | 38.93 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=df-portfolio-categories&post_type=df-portfolio | 3.43 | 36.64 |
Add New /wp-admin/post-new.php?post_type=df-banner | 3.59 | 55.48 |
All Testimonial /wp-admin/edit.php?post_type=df-testimonial | 3.48 | 41.98 |
Add New /wp-admin/post-new.php?post_type=df-treatment | 3.59 | 54.60 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=df-category-testimonial&post_type=df-testimonial | 3.43 | 51.12 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
dentalfocus_social_media |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Dental Focus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲227 | 14.70 ▲0.35 | 1.70 ▼0.02 | 42.95 ▲1.46 |
Dashboard /wp-admin | 2,367 ▲190 | 5.58 ▼0.08 | 84.59 ▼5.36 | 77.93 ▲34.02 |
Posts /wp-admin/edit.php | 2,290 ▲190 | 1.99 ▲0.02 | 37.76 ▲0.57 | 35.26 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 18.17 ▼5.44 | 746.42 ▲70.66 | 55.02 ▲0.02 |
Media Library /wp-admin/upload.php | 1,584 ▲181 | 4.02 ▼0.19 | 117.39 ▲10.18 | 75.87 ▲33.22 |
Team Categories /wp-admin/edit-tags.php?taxonomy=df-team-categories&post_type=df-team | 1,461 | 2.13 | 28.53 | 35.13 |
All Treatment /wp-admin/edit.php?post_type=df-treatment | 1,265 | 1.90 | 33.28 | 29.73 |
Treatment Categories /wp-admin/edit-tags.php?taxonomy=df-treatment-categories&post_type=df-treatment | 1,461 | 2.14 | 29.09 | 31.64 |
All Team /wp-admin/edit.php?post_type=df-team | 1,262 | 1.94 | 30.26 | 31.57 |
All Banner /wp-admin/edit.php?post_type=df-banner | 1,265 | 1.92 | 31.23 | 29.78 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=df-portfolio-categories&post_type=df-portfolio | 1,455 | 2.26 | 27.73 | 31.00 |
Add New /wp-admin/post-new.php?post_type=df-banner | 2,583 | 7.94 | 172.40 | 121.67 |
All Testimonial /wp-admin/edit.php?post_type=df-testimonial | 1,262 | 1.93 | 32.20 | 30.08 |
Add New /wp-admin/post-new.php?post_type=df-treatment | 2,583 | 7.68 | 166.70 | 125.60 |
Testimonial Categories /wp-admin/edit-tags.php?taxonomy=df-category-testimonial&post_type=df-testimonial | 1,455 | 2.14 | 27.33 | 30.42 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- dentalfocus_social_media
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/dental-focus/pages/dashboard.php
- 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 29
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 53
- > PHP Warning
Use of undefined constant DENTALFOCUS_IMAGES - assumed 'DENTALFOCUS_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 90
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 13
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 33
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 89
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 98
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 40
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 18
- > PHP Warning
Use of undefined constant DENTALFOCUS_WP_ADMIN_URL - assumed 'DENTALFOCUS_WP_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/dental-focus/pages/dashboard.php on line 109
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=df-category-testimonial&post_type=df-testimonial
- > Network (severe)
wp-content/plugins/dental-focus/scripts/jquery.validationEngine.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=df-category-testimonial&post_type=df-testimonial
- > Network (severe)
wp-content/plugins/dental-focus/scripts/jquery.validationEngine-en.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please a description for screenshot #8 in dental-focus/assets to your readme.txt
dental-focus/dentalfocus.php 85% from 13 tests
The main PHP script in "Dental Focus" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dental-focus.php" instead of "dentalfocus.php")
- Description: The description should be shorter than 140 characters (currently 517 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,593 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 206 | 619 | 1,515 |
PHP | 8 | 31 | 151 | 922 |
CSS | 2 | 30 | 1 | 156 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dashboard-testimonials.png | 10.30KB | 4.46KB | ▼ 56.74% |
images/dashboard-settings.png | 9.43KB | 6.01KB | ▼ 36.22% |
images/dashboard-gallary.png | 2.62KB | 2.60KB | ▼ 0.75% |
images/dashboard-treatments.png | 2.38KB | 2.41KB | 0.00% |
images/dashboard-banner.png | 2.23KB | 1.30KB | ▼ 41.86% |