Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼138.90ms] Passed 4 tests
Server-side resources used by Parse Markdown
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.05 | 35.27 ▼1.27 |
Dashboard /wp-admin | 3.11 ▲0.05 | 59.03 ▲11.29 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 49.45 ▲4.89 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 95.77 ▼563.14 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 36.62 ▲3.93 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Parse Markdown
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.94 ▲0.31 | 10.40 ▼0.28 | 51.53 ▲0.01 |
Dashboard /wp-admin | 2,967 ▲30 | 5.93 ▼0.20 | 169.20 ▲12.58 | 116.99 ▼5.77 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 76.02 ▲6.72 | 100.09 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,498 ▼108 | 18.85 ▼0.03 | 382.36 ▲3.37 | 113.06 ▲1.35 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.03 | 164.15 ▲8.15 | 123.32 ▼1.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/parse-markdown/parse-markdown.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: code, markdown
parse-markdown/parse-markdown.php 92% from 13 tests
The main PHP file in "Parse Markdown" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,722 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 451 | 308 | 1,580 |
JSON | 3 | 0 | 0 | 88 |
Markdown | 1 | 32 | 0 | 54 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 60.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 6 | 7.89% |
▷ Public methods | 31 | 40.79% |
▷ Protected methods | 44 | 57.89% |
▷ Private methods | 1 | 1.32% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected