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.91MB] [CPU: ▼30.61ms] Passed 4 tests
Analyzing server-side resources used by Markdown Webhook
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.06 | 29.46 ▼6.50 |
Dashboard /wp-admin | 3.03 ▼0.27 | 22.87 ▼26.55 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 27.36 ▼19.87 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 25.26 ▼65.53 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 22.50 ▼10.47 |
Markdown Webhook /wp-admin/edit.php?page=mdwh | 3.04 | 26.94 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
mdwh_token |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
mdwh_active |
Browser metrics Passed 4 tests
Markdown Webhook: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲102 | 13.65 ▼0.94 | 11.21 ▲9.13 | 38.54 ▼12.87 |
Dashboard /wp-admin | 2,213 ▲28 | 4.85 ▼1.01 | 110.49 ▲10.01 | 37.42 ▼3.83 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.05 ▲0.05 | 39.63 ▲3.55 | 34.84 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,523 ▼13 | 23.14 ▼0.19 | 640.62 ▲4.94 | 57.29 ▼2.44 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▲0.02 | 96.94 ▼5.43 | 40.68 ▼1.92 |
Markdown Webhook /wp-admin/edit.php?page=mdwh | 907 | 1.72 | 28.61 | 31.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/md-webhook/index.php+137
Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 7 options
- mdwh_token
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=mdwh
- > Warning in wp-content/plugins/md-webhook/index.php+142
Use of undefined constant type - assumed 'type' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=mdwh
- > Warning in wp-content/plugins/md-webhook/index.php+142
Use of undefined constant name - assumed 'name' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?page=mdwh
- > Warning in wp-content/plugins/md-webhook/index.php+142
Use of undefined constant tip - assumed 'tip' (this will throw an Error in a future version of PHP)
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: md, github, webhook, bitbucket, post...
md-webhook/index.php 92% from 13 tests
This is the main PHP file of "Markdown Webhook" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("md-webhook.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected438 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 11 | 398 |
JavaScript | 3 | 3 | 1 | 39 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 19 | 82.61% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin