Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼136.64ms] Passed 4 tests
Analyzing server-side resources used by Docket WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.24 ▲0.40 | 43.08 ▲8.98 |
Dashboard /wp-admin | 3.47 ▲0.42 | 47.36 ▲3.70 |
Posts /wp-admin/edit.php | 3.52 ▲0.42 | 47.09 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.77 ▲0.34 | 93.25 ▼550.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.35 | 35.02 ▼2.84 |
Docket WP /wp-admin/options-general.php?page=docket-wp | 3.33 | 30.11 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 108 new files
Database: no new tables, 1 new option
New WordPress options |
---|
dwp_install_id |
Browser metrics Passed 4 tests
A check of browser resources used by Docket WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲249 | 22.74 ▲7.12 | 42.14 ▲32.03 | 43.23 ▼3.87 |
Dashboard /wp-admin | 3,012 ▲81 | 8.79 ▲2.79 | 156.04 ▲10.77 | 115.10 ▲4.27 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 6.04 ▲3.35 | 91.44 ▲20.06 | 112.74 ▲25.90 |
Add New Post /wp-admin/post-new.php | 1,524 ▼146 | 19.41 ▲0.12 | 365.54 ▼21.39 | 142.88 ▲26.82 |
Media Library /wp-admin/upload.php | 1,851 ▲47 | 7.20 ▲2.17 | 149.41 ▼15.25 | 118.29 ▼6.34 |
Docket WP /wp-admin/options-general.php?page=docket-wp | 1,146 | 5.84 | 89.21 | 94.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- dwp_install_id
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\FilesystemInterface' not found in wp-content/plugins/docket-wp/vendor/typisttech/imposter/src/Filesystem.php:12
- > PHP Fatal error
Uncaught Error: Class 'DiceTest' not found in wp-content/plugins/docket-wp/vendor/level-2/dice/tests/ShareInstancesTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiceTest' not found in wp-content/plugins/docket-wp/vendor/level-2/dice/tests/NamespaceTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ImposterInterface' not found in wp-content/plugins/docket-wp/vendor/typisttech/imposter/src/Imposter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\ConfigCollectionInterface' not found in wp-content/plugins/docket-wp/vendor/typisttech/imposter/src/ConfigCollection.php:7
- > PHP Warning
require_once(Dice.php): failed to open stream: No such file or directory in wp-content/plugins/docket-wp/vendor/level-2/dice/tests/bootstrap.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'DiceTest' not found in wp-content/plugins/docket-wp/vendor/level-2/dice/tests/NamedInstancesTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiceTest' not found in wp-content/plugins/docket-wp/vendor/level-2/dice/tests/BasicTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'TypistTech\\Imposter\\TransformerInterface' not found in wp-content/plugins/docket-wp/vendor/typisttech/imposter/src/Transformer.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_User' not found in wp-content/plugins/docket-wp/inc/Models/User.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7, #8 in docket-wp/assets to your readme.txt
docket-wp/docket-wp.php 85% from 13 tests
The entry point to "Docket WP" version 1.1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected5,316 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 984 | 1,207 | 3,762 |
Markdown | 7 | 398 | 0 | 780 |
JSON | 6 | 0 | 0 | 517 |
JavaScript | 17 | 12 | 2,330 | 151 |
XML | 3 | 9 | 3 | 103 |
CSS | 2 | 0 | 34 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 8 | |
Traits | 1 | |
Classes | 115 | |
▷ Abstract classes | 1 | 0.87% |
▷ Concrete classes | 114 | 99.13% |
▷ Final classes | 0 | 0.00% |
Methods | 337 | |
▷ Static methods | 35 | 10.39% |
▷ Public methods | 310 | 91.99% |
▷ Protected methods | 5 | 1.48% |
▷ Private methods | 22 | 6.53% |
Functions | 24 | |
▷ Named functions | 1 | 4.17% |
▷ Anonymous functions | 23 | 95.83% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 5 | 83.33% |
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
No PNG files were detected