Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.95MB] [CPU: ▲7.30ms] Passed 4 tests
This is a short check of server-side resources used by DoctorFeature
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 35.96 ▼6.42 |
Dashboard /wp-admin | 4.59 ▲1.29 | 66.64 ▲9.42 |
Posts /wp-admin/edit.php | 4.64 ▲1.28 | 67.10 ▲16.12 |
Add New Post /wp-admin/post-new.php | 7.11 ▲1.22 | 105.92 ▲14.71 |
Media Library /wp-admin/upload.php | 4.43 ▲1.19 | 46.07 ▲11.47 |
Server storage [IO: ▲8.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 368 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by DoctorFeature
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,999 ▲213 | 18.50 ▲4.13 | 2.11 ▼0.57 | 42.19 ▼0.59 |
Dashboard /wp-admin | 2,374 ▲194 | 9.13 ▲3.53 | 179.46 ▲77.61 | 42.89 ▼0.58 |
Posts /wp-admin/edit.php | 2,316 ▲219 | 6.41 ▲4.39 | 118.26 ▲79.60 | 37.20 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 26.12 ▲3.02 | 707.17 ▼0.05 | 33.06 ▼30.46 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 6.92 ▲2.67 | 136.73 ▲30.62 | 41.84 ▼5.16 |
DoctorFeature /wp-admin/crb_carbon_fields_container_doctorfeature.php | 26 | 0.42 | 0.09 | 15.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/doctorfeature/vendor/theseconddre/pattern-creator/examples/index.php
- 102× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Carbon_Fields' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/config.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Contain_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'GDText\\Tests\\TestCase' not found in wp-content/plugins/doctorfeature/vendor/stil/gd-text/tests/ColorTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Field/Html_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Service/REST_API_Service.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Level_Condition.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Event\\Listener' not found in wp-content/plugins/doctorfeature/vendor/htmlburger/carbon-fields/core/Event/PersistentListener.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/crb_carbon_fields_container_doctorfeature.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_doctorfeature.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% 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 add descriptions for these screenshots #1, #2 in doctorfeature/assets to your readme.txt
doctorfeature/doctorfeature.php 69% from 13 tests
The entry point to "DoctorFeature" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/drf")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("drf")
- Git Repository: A Git repository was detected inside this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin69,401 lines of code in 317 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 127 | 14,928 | 27,794 | 53,558 |
PHP | 142 | 2,226 | 5,834 | 8,254 |
JSON | 10 | 3 | 0 | 5,664 |
PO File | 10 | 819 | 1,265 | 1,297 |
CSS | 24 | 255 | 108 | 482 |
Markdown | 3 | 50 | 0 | 137 |
XML | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 14 | 11.57% |
▷ Concrete classes | 107 | 88.43% |
▷ Final classes | 1 | 0.93% |
Methods | 851 | |
▷ Static methods | 73 | 8.58% |
▷ Public methods | 685 | 80.49% |
▷ Protected methods | 153 | 17.98% |
▷ Private methods | 13 | 1.53% |
Functions | 77 | |
▷ Named functions | 14 | 18.18% |
▷ Anonymous functions | 63 | 81.82% |
Constants | 35 | |
▷ Global constants | 5 | 14.29% |
▷ Class constants | 30 | 85.71% |
▷ Public constants | 30 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/stil/gd-text/tests/images/owl_png8.png | 3.33KB | 3.38KB | 0.00% |
vendor/stil/gd-text/tests/images/owl_png24.png | 6.69KB | 3.42KB | ▼ 48.87% |
vendor/stil/gd-text/tests/images/test_align_center_right.png | 10.41KB | 4.42KB | ▼ 57.54% |
vendor/stil/gd-text/tests/images/test_wrap_NoWrap.png | 8.77KB | 4.15KB | ▼ 52.71% |
vendor/stil/gd-text/tests/images/test_align_center_left.png | 10.39KB | 4.42KB | ▼ 57.52% |