Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲68.88ms] Passed 4 tests
A check of server-side resources used by WP Editor.md - The Perfect WordPress Markdown Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 47.35 ▲6.76 |
Dashboard /wp-admin | 4.62 ▲1.31 | 165.78 ▲115.71 |
Posts /wp-admin/edit.php | 4.67 ▲1.31 | 147.96 ▲95.24 |
Add New Post /wp-admin/post-new.php | 4.64 ▼1.24 | 168.94 ▲62.65 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 149.23 ▲110.85 |
WP Editor.md /wp-admin/options-general.php?page=wp-editormd-settings | 2.46 | 10.00 |
Server storage [IO: ▲20.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2,341 new files
Database: no new tables, 16 new options
New WordPress options |
---|
editor_mermaid |
editor_emoji |
widget_theysaidso_widget |
editor_style |
editor_latex |
editor_mindmap |
widget_recent-posts |
editor_version |
syntax_highlighting |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Editor.md - The Perfect WordPress Markdown Editor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,215 ▲454 | 17.05 ▲2.68 | 24.39 ▲22.72 | 43.32 ▼1.17 |
Dashboard /wp-admin | 2,426 ▲220 | 6.77 ▲0.86 | 141.45 ▲35.62 | 41.29 ▼2.58 |
Posts /wp-admin/edit.php | 2,329 ▲229 | 3.84 ▲1.81 | 64.04 ▲24.50 | 33.67 ▼1.55 |
Add New Post /wp-admin/post-new.php | 3,071 ▲1,545 | 5.41 ▼12.26 | 104.35 ▼572.48 | 110.04 ▲55.75 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.46 ▲0.18 | 91.04 ▼23.87 | 43.33 ▼3.40 |
WP Editor.md /wp-admin/options-general.php?page=wp-editormd-settings | 2,347 | 6.30 | 109.80 | 107.15 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-editormd-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jQuery.Modal handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=wp-editormd-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jQuery.Modal handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-editormd/src/Utils/Settings/settings.css.php
- > /wp-content/plugins/wp-editormd/vendor/michelf/php-markdown/Readme.php
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_EDITORMD_VER - assumed 'WP_EDITORMD_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-editormd/src/Utils/Settings/settings.js.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function EditormdRoot\\plugins_url() in wp-content/plugins/wp-editormd/wp-editormd.php:22
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\HtmlConverterInterface' not found in wp-content/plugins/wp-editormd/vendor/league/html-to-markdown/src/HtmlConverter.php:17
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-editormd/vendor/league/html-to-markdown/src/Converter/CodeConverter.php:7
- > PHP Warning
Use of undefined constant WP_EDITORMD_VER - assumed 'WP_EDITORMD_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-editormd/src/Utils/Settings/settings.js.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-editormd/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-editormd/vendor/league/html-to-markdown/src/Converter/HeaderConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-editormd/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/wp-editormd/uninstall.php:10
- > PHP Notice
Undefined variable: editor_style_base_address in wp-content/plugins/wp-editormd/src/Utils/Settings/settings.js.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (Editor.md Interface - Edit Mode)
wp-editormd/wp-editormd.php 85% from 13 tests
The principal PHP file in "WP Editor.md - The Perfect WordPress Markdown Editor" v. 10.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin225,061 lines of code in 1,289 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 752 | 28,895 | 36,705 | 159,589 |
HTML | 223 | 5,041 | 115 | 25,266 |
SVG | 9 | 0 | 0 | 12,450 |
PHP | 79 | 1,706 | 3,556 | 7,574 |
CSS | 115 | 1,005 | 510 | 6,338 |
Sass | 14 | 1,187 | 44 | 4,519 |
Markdown | 22 | 900 | 0 | 3,549 |
JSON | 11 | 8 | 0 | 2,611 |
XHTML | 57 | 1,024 | 0 | 2,560 |
PO File | 2 | 229 | 4 | 510 |
YAML | 4 | 6 | 8 | 72 |
XML | 1 | 1 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 55 | 100.00% |
▷ Final classes | 1 | 1.82% |
Methods | 445 | |
▷ Static methods | 16 | 3.60% |
▷ Public methods | 289 | 64.94% |
▷ Protected methods | 119 | 26.74% |
▷ Private methods | 37 | 8.31% |
Functions | 15 | |
▷ Named functions | 7 | 46.67% |
▷ Anonymous functions | 8 | 53.33% |
Constants | 19 | |
▷ Global constants | 8 | 42.11% |
▷ Class constants | 11 | 57.89% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
898 PNG files occupy 4.01MB with 1.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Emojify.js/images/basic/part_alternation_mark.png | 2.62KB | 1.93KB | ▼ 26.15% |
assets/Emojify.js/images/basic/laughing.png | 6.20KB | 3.12KB | ▼ 49.69% |
assets/Emojify.js/images/basic/sunny.png | 3.71KB | 2.42KB | ▼ 34.85% |
assets/Emojify.js/images/basic/droplet.png | 3.07KB | 2.26KB | ▼ 26.35% |
assets/Emojify.js/images/basic/o.png | 2.48KB | 2.16KB | ▼ 12.81% |