Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.59ms] Passed 4 tests
A check of server-side resources used by Markdown Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.39 ▼1.94 |
Dashboard /wp-admin | 3.31 ▼0.03 | 46.30 ▼16.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.98 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.41 ▼29.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.25 ▲2.23 |
Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Markdown Shortcode: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.42 ▲0.07 | 4.92 ▲3.22 | 42.87 ▲0.42 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▲0.06 | 84.07 ▼12.13 | 39.10 ▼5.42 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.03 | 36.13 ▼2.33 | 30.12 ▼6.90 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.30 ▲0.12 | 669.26 ▲78.21 | 56.76 ▼6.10 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.22 ▲0.08 | 99.25 ▲4.21 | 43.79 ▲2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/markdown-shortcode/markdown-shortcode.php:10
- > PHP Fatal error
Uncaught Error: Class 'markdown_shortcode\\Parsedown' not found in wp-content/plugins/markdown-shortcode/parsedown/ParsedownExtra.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Blog post written in markdown.), #2 (Same blog post on front end.)
- Requires at least: Version format is invalid
markdown-shortcode/markdown-shortcode.php Passed 13 tests
The main PHP file in "Markdown Shortcode" ver. 0.2.1 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
damn simple [markdown]#via shortcode[/markdown], uses parsedown (parsedown.org) and highlight.js (highlightjs.org)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,927 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 487 | 171 | 1,488 |
Markdown | 4 | 389 | 0 | 995 |
CSS | 3 | 45 | 10 | 441 |
JavaScript | 2 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 66.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 17 | 23.94% |
▷ Protected methods | 53 | 74.65% |
▷ Private methods | 1 | 1.41% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-256x256.png | 2.29KB | 2.39KB | 0.00% |
screenshot-2.png | 50.47KB | 53.34KB | 0.00% |
screenshot-1.png | 27.07KB | 28.81KB | 0.00% |