Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▼3.58ms] Passed 4 tests
An overview of server-side resources used by Import Markdown
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.25 ▲0.23 |
Dashboard /wp-admin | 4.04 ▲0.74 | 47.92 ▼0.91 |
Posts /wp-admin/edit.php | 4.15 ▲0.80 | 50.86 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.73 | 83.65 ▼14.86 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 41.24 ▲6.76 |
Options /wp-admin/admin.php?page=daimma-options | 3.93 | 34.39 |
Help /wp-admin/admin.php?page=daimma-help | 3.93 | 37.48 |
Pro Version /wp-admin/admin.php?page=daimma-pro-version | 3.93 | 34.70 |
Import /wp-admin/admin.php?page=daimma-import | 3.93 | 39.34 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
daimma_markdown_parser |
daimma_import_menu_required_capability |
widget_recent-comments |
daimma_cebe_markdown_enable_new_lines |
widget_theysaidso_widget |
daimma_import_post_type |
daimma_cebe_markdown_keep_list_start_number |
daimma_cebe_markdown_html5 |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import Markdown
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.73 ▲0.74 | 1.80 ▲0.14 | 42.46 ▼1.49 |
Dashboard /wp-admin | 2,358 ▲188 | 5.65 ▲0.06 | 86.13 ▼17.81 | 37.71 ▼2.99 |
Posts /wp-admin/edit.php | 2,260 ▲160 | 2.05 ▲0.09 | 38.23 ▼2.01 | 31.66 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,556 ▲19 | 23.17 ▲4.92 | 594.43 ▼22.37 | 75.61 ▲7.97 |
Media Library /wp-admin/upload.php | 1,560 ▲163 | 4.21 ▼0.02 | 97.82 ▼1.02 | 39.17 ▼6.57 |
Options /wp-admin/admin.php?page=daimma-options | 1,210 | 2.25 | 46.28 | 38.94 |
Help /wp-admin/admin.php?page=daimma-help | 979 | 2.01 | 32.83 | 29.47 |
Pro Version /wp-admin/admin.php?page=daimma-pro-version | 1,050 | 2.00 | 24.20 | 28.12 |
Import /wp-admin/admin.php?page=daimma-import | 975 | 2.02 | 29.49 | 29.75 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'cebe\\markdown\\block\\CodeTrait' not found in wp-content/plugins/import-markdown/vendor/cebe/markdown/block/FencedCodeTrait.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/import-markdown/vendor/erusev/parsedown-extra/ParsedownExtra.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/import-markdown/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Class 'cebe\\markdown\\Markdown' not found in wp-content/plugins/import-markdown/vendor/cebe/markdown/GithubMarkdown.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/import-markdown/admin/view/import.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/import-markdown/admin/view/options.php:3
- > PHP Fatal error
Uncaught Error: Class 'cebe\\markdown\\Parser' not found in wp-content/plugins/import-markdown/vendor/cebe/markdown/Markdown.php:15
- > PHP Fatal error
Uncaught Error: Class 'cebe\\markdown\\Markdown' not found in wp-content/plugins/import-markdown/vendor/cebe/markdown/MarkdownExtra.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/import-markdown/admin/view/pro_version.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
5 plugin tags: import, importer, markdown, markdown import, markdown importer
import-markdown/init.php 92% from 13 tests
The entry point to "Import Markdown" version 1.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("import-markdown.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,181 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,050 | 1,027 | 3,773 |
JavaScript | 4 | 109 | 12 | 1,159 |
CSS | 9 | 148 | 48 | 1,090 |
PO File | 1 | 361 | 1,305 | 140 |
Markdown | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 24.96 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 13 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 212 | |
▷ Static methods | 7 | 3.30% |
▷ Public methods | 61 | 28.77% |
▷ Protected methods | 142 | 66.98% |
▷ Private methods | 9 | 4.25% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/league-table-thumbnail.png | 1.41KB | 1.33KB | ▼ 6.02% |
admin/assets/img/help-fdfdfd.png | 15.52KB | 0.53KB | ▼ 96.60% |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/inc/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/assets/inc/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |