Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+997
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.39MB] [CPU: ▼52.33ms] Passed 4 tests
Server-side resources used by Mytory Markdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.60 ▼0.86 | 7.69 ▼37.12 |
Dashboard /wp-admin | 2.62 ▼0.69 | 7.83 ▼39.78 |
Posts /wp-admin/edit.php | 2.62 ▼0.74 | 10.55 ▼39.11 |
Add New Post /wp-admin/post-new.php | 2.62 ▼3.27 | 9.88 ▼93.31 |
Media Library /wp-admin/upload.php | 2.62 ▼0.61 | 7.87 ▼29.40 |
Mytory Markdown: Settings /wp-admin/options-general.php?page=mytory-markdown | 2.62 | 9.91 |
Mytory Markdown: URL Batch replace /wp-admin/options-general.php?page=mytory-markdown-batch-update | 2.62 | 8.61 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
mytory_markdown_engine |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Mytory Markdown
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.21 ▼1.09 | 1.90 ▼0.15 | 42.94 ▼6.25 |
Dashboard /wp-admin | 2,216 ▲31 | 4.84 ▼1.06 | 108.71 ▼5.69 | 38.80 ▼4.80 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.06 ▲0.04 | 45.60 ▲7.55 | 37.19 ▲3.46 |
Add New Post /wp-admin/post-new.php | 6,301 ▲4,767 | 19.18 ▼3.89 | 931.89 ▲255.85 | 59.07 ▲3.73 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.19 ▼0.01 | 99.82 ▼2.95 | 47.67 ▲5.61 |
Mytory Markdown: Settings /wp-admin/options-general.php?page=mytory-markdown | 1,030 | 1.71 | 28.29 | 30.73 |
Mytory Markdown: URL Batch replace /wp-admin/options-general.php?page=mytory-markdown-batch-update | 835 | 1.71 | 25.32 | 26.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+997
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- mytory_markdown_engine
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 42 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mytory-markdown-batch-update
- > Deprecated in wp-content/plugins/mytory-markdown/markdown.php+3147
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/mytory-markdown/ParsedownExtra.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/batch.php:3
- > PHP Notice
Undefined variable: md_mode in wp-content/plugins/mytory-markdown/meta-box.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mytory-markdown/main.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/mytory-markdown/how-to-migrate.php:2
- > PHP Notice
Undefined variable: md_mode in wp-content/plugins/mytory-markdown/meta-box.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/mytory-markdown/meta-box.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: github, markdown editor, markdown, md
mytory-markdown/main.php 85% from 13 tests
The main PHP file in "Mytory Markdown" ver. 1.6.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("mytory-markdown.php" instead of "main.php")
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,210 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,194 | 1,308 | 4,821 |
Markdown | 5 | 140 | 0 | 170 |
PO File | 1 | 53 | 63 | 148 |
JavaScript | 2 | 12 | 7 | 71 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 45.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 1 | 0.50% |
▷ Public methods | 134 | 66.67% |
▷ Protected methods | 56 | 27.86% |
▷ Private methods | 11 | 5.47% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 13 | 86.67% |
▷ Class constants | 2 | 13.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin