Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.60MB] [CPU: ▲12.59ms] Passed 4 tests
This is a short check of server-side resources used by iTech Doc
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.05 ▲1.60 | 58.77 ▲14.78 |
Dashboard /wp-admin | 4.90 ▲1.60 | 59.83 ▲9.73 |
Posts /wp-admin/edit.php | 5.01 ▲1.65 | 66.42 ▲17.10 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.70 | 101.32 ▲15.74 |
Media Library /wp-admin/upload.php | 4.79 ▲1.57 | 44.90 ▲10.10 |
Categories /wp-admin/edit-tags.php?taxonomy=catrgory&post_type=doc | 4.82 | 49.12 |
Add New /wp-admin/post-new.php?post_type=doc | 7.66 | 96.11 |
iTech Docs /wp-admin/edit.php?post_type=doc | 4.86 | 50.14 |
Server storage [IO: ▲9.95MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 493 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
iTech Doc: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,229 ▲494 | 19.01 ▲4.71 | 9.15 ▲7.17 | 40.53 ▼10.26 |
Dashboard /wp-admin | 2,506 ▲318 | 9.24 ▲3.38 | 185.03 ▲80.34 | 43.37 ▲0.58 |
Posts /wp-admin/edit.php | 2,412 ▲320 | 6.08 ▲4.03 | 79.71 ▲36.83 | 35.18 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,612 ▲98 | 19.97 ▲2.52 | 737.33 ▲45.64 | 38.01 ▼14.29 |
Media Library /wp-admin/upload.php | 1,554 ▲166 | 6.63 ▲2.41 | 109.08 ▲10.55 | 42.77 ▲0.69 |
Categories /wp-admin/edit-tags.php?taxonomy=catrgory&post_type=doc | 1,604 | 5.91 | 68.65 | 30.53 |
Add New /wp-admin/post-new.php?post_type=doc | 2,031 | 20.89 | 994.70 | 44.70 |
iTech Docs /wp-admin/edit.php?post_type=doc | 1,424 | 6.08 | 70.81 | 29.67 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- > /wp-content/plugins/itech-doc/public/partials/itech-doc-public-display.php
- > /wp-content/plugins/itech-doc/admin/partials/itech-doc-admin-display.php
- 116× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Event\\Listener' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Event/PersistentListener.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\User_Capability_Condition' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_Capability_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Field/Checkbox_Field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/itech-doc/public/doc/tax.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/itech-doc/vendor/htmlburger/carbon-fields/templates/Container/user_meta.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=doc
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
itech-doc/itech-doc.php Passed 13 tests
"iTech Doc" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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 plugin31,411 lines of code in 429 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 176 | 5,198 | 8,515 | 12,958 |
PHP | 159 | 2,607 | 7,033 | 9,008 |
CSS | 15 | 416 | 1,194 | 3,941 |
PO File | 21 | 704 | 889 | 1,874 |
Sass | 48 | 334 | 0 | 1,746 |
SVG | 4 | 0 | 0 | 1,461 |
JSON | 3 | 0 | 0 | 355 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.86 |
▷ 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 | 22 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 128 | |
▷ Abstract classes | 11 | 8.59% |
▷ Concrete classes | 117 | 91.41% |
▷ Final classes | 1 | 0.85% |
Methods | 913 | |
▷ Static methods | 92 | 10.08% |
▷ Public methods | 739 | 80.94% |
▷ Protected methods | 165 | 18.07% |
▷ Private methods | 9 | 0.99% |
Functions | 110 | |
▷ Named functions | 30 | 27.27% |
▷ Anonymous functions | 80 | 72.73% |
Constants | 29 | |
▷ Global constants | 6 | 20.69% |
▷ Class constants | 23 | 79.31% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/template/images/download.png | 67.62KB | 27.51KB | ▼ 59.31% |