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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.44ms] Passed 4 tests
This is a short check of server-side resources used by MetaParsedown
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.46 ▼1.76 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.34 ▼12.90 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.91 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.35 ▼20.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.08 ▲1.58 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MetaParsedown
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.66 ▼0.63 | 1.83 ▲0.13 | 43.09 ▲3.00 |
Dashboard /wp-admin | 2,209 ▲21 | 5.91 ▲1.01 | 99.71 ▼17.43 | 39.54 ▼5.80 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.00 | 40.18 ▼1.13 | 33.81 ▼4.70 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.53 ▼5.67 | 673.22 ▼24.62 | 58.16 ▲1.84 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.20 ▼0.02 | 96.91 ▼4.57 | 44.25 ▼2.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% 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 everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/metaparsedown/autoload.php
- > /wp-content/plugins/metaparsedown/metaparsedown.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Metaparsedown\\Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/metaparsedown/Metaparsedown/Symfony/Component/Yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Metaparsedown\\Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/metaparsedown/Metaparsedown/Symfony/Component/Yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Metaparsedown\\Parsedown\\ParsedownExtra' not found in wp-content/plugins/metaparsedown/Metaparsedown/Pagerange/Markdown/Parsers/YamlParser.php:16
- > PHP Fatal error
Uncaught Error: Class 'Metaparsedown\\Parsedown\\Parsedown' not found in wp-content/plugins/metaparsedown/Metaparsedown/Parsedown/ParsedownExtra.php:17
- > PHP Fatal error
Uncaught Error: Class 'Metaparsedown\\Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/metaparsedown/Metaparsedown/Symfony/Component/Yaml/Command/LintCommand.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Metaparsedown\\Pagerange\\Markdown\\Parsers\\ParserInterface' not found in wp-content/plugins/metaparsedown/Metaparsedown/Pagerange/Markdown/MetaParsedown.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Metaparsedown\\Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/metaparsedown/Metaparsedown/Symfony/Component/Yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
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 Passed 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
9 plugin tags: parsedown-extra, bitbucket, gitlab, yaml, github...
metaparsedown/metaparsedown.php Passed 13 tests
"MetaParsedown" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
113 characters long description:
Parse external markdown files and inject HTML into posts and pages, retrieve YAML metadata from them if required.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected3,899 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,124 | 1,379 | 3,756 |
JavaScript | 2 | 21 | 75 | 126 |
CSS | 1 | 3 | 1 | 9 |
Markdown | 1 | 4 | 0 | 8 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 40.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 2 | 10.53% |
Methods | 196 | |
▷ Static methods | 40 | 20.41% |
▷ Public methods | 69 | 35.20% |
▷ Protected methods | 80 | 40.82% |
▷ Private methods | 47 | 23.98% |
Functions | 19 | |
▷ Named functions | 12 | 63.16% |
▷ Anonymous functions | 7 | 36.84% |
Constants | 21 | |
▷ Global constants | 3 | 14.29% |
▷ Class constants | 18 | 85.71% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected