Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▼0.63ms] Passed 4 tests
Server-side resources used by Safan Doc
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 44.72 ▲6.74 |
Dashboard /wp-admin | 3.75 ▲0.45 | 51.91 ▲0.03 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 54.64 ▲13.03 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 88.47 ▼11.66 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 36.49 ▲2.38 |
Add New /wp-admin/post-new.php?post_type=doc | 6.50 | 87.07 |
Safan Docs /wp-admin/edit.php?post_type=doc | 3.71 | 40.95 |
Categories /wp-admin/edit-tags.php?taxonomy=catrgory&post_type=doc | 3.66 | 38.75 |
Server storage [IO: ▲9.94MB] [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_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Safan Doc
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,229 ▲494 | 19.03 ▲4.36 | 9.68 ▲7.65 | 41.27 ▼2.62 |
Dashboard /wp-admin | 2,509 ▲317 | 9.20 ▲4.25 | 174.49 ▲67.53 | 38.03 ▲1.17 |
Posts /wp-admin/edit.php | 2,415 ▲326 | 6.08 ▲4.02 | 74.45 ▲33.22 | 32.01 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,613 ▲94 | 20.08 ▼3.13 | 759.61 ▲156.24 | 38.74 ▼13.54 |
Media Library /wp-admin/upload.php | 1,567 ▲179 | 6.60 ▲2.41 | 110.11 ▲15.28 | 43.19 ▼2.54 |
Add New /wp-admin/post-new.php?post_type=doc | 7,015 | 29.07 | 1,044.43 | 44.75 |
Safan Docs /wp-admin/edit.php?post_type=doc | 1,424 | 6.06 | 72.97 | 27.34 |
Categories /wp-admin/edit-tags.php?taxonomy=catrgory&post_type=doc | 1,604 | 5.93 | 65.20 | 26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/safan-doc/public/partials/safan-doc-public-display.php
- > /wp-content/plugins/safan-doc/admin/partials/safan-doc-admin-display.php
- > /wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 116× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Datastore/Network_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Field/Oembed_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Scalar_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Contain_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Field/Gravity_Form_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\User_Role_Condition' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_Role_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/safan-doc/vendor/htmlburger/carbon-fields/core/Field/Association_Field.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Setting Page), #2 (Product Archive Page), #3 (Single Product Page)
safan-doc/safan-doc.php Passed 13 tests
The primary PHP file in "Safan Doc" version 1.0.0 is used by WordPress to initiate all plugin 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 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous 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,019 | 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
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Using a strong compression for your PNG files is a great way to speed-up 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% |