Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼8.44ms] Passed 4 tests
Server-side resources used by WP Githuber MD - WordPress Markdown Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 42.31 ▼3.85 |
Dashboard /wp-admin | 4.25 ▲0.94 | 58.37 ▲9.36 |
Posts /wp-admin/edit.php | 4.30 ▲0.94 | 51.11 ▼0.78 |
Add New Post /wp-admin/post-new.php | 4.48 ▼1.41 | 69.22 ▼32.61 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 39.24 ▲3.48 |
WP Githuber MD /wp-admin/options-general.php?page=githuber-md | 4.15 | 38.46 |
Server storage [IO: ▲38.12MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Try to limit filesystem usage to 25MB (currently using 38.12MB)
Filesystem: 2,784 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
githuber_about |
githuber_markdown |
widget_theysaidso_widget |
githuber_extensions |
githuber_modules |
widget_recent-comments |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Githuber MD - WordPress Markdown Editor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲217 | 15.77 ▲1.10 | 1.78 ▼0.21 | 45.11 ▼2.76 |
Dashboard /wp-admin | 2,380 ▲201 | 7.20 ▲1.32 | 137.13 ▲36.94 | 42.34 ▼1.74 |
Posts /wp-admin/edit.php | 2,297 ▲205 | 3.68 ▲1.62 | 59.70 ▲18.53 | 32.66 ▼1.34 |
Add New Post /wp-admin/post-new.php | 3,254 ▲1,721 | 6.04 ▼16.98 | 138.06 ▼482.15 | 130.26 ▲85.67 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.89 ▲0.71 | 95.02 ▼2.74 | 44.26 ▲3.39 |
WP Githuber MD /wp-admin/options-general.php?page=githuber-md | 3,480 | 4.61 | 87.65 | 88.18 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- can_compress_scripts
- githuber_extensions
- widget_recent-comments
- githuber_markdown
- githuber_modules
- widget_recent-posts
- db_upgraded
- githuber_about
- theysaidso_admin_options
- ...
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 50× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Githuber\\Module\\ModuleAbstract' not found in wp-content/plugins/wp-githuber-md/src/Modules/Mermaid.php:19
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-githuber-md/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\HtmlConverterInterface' not found in wp-content/plugins/wp-githuber-md/vendor/league/html-to-markdown/src/HtmlConverter.php:17
- > PHP Fatal error
Uncaught Error: Class 'Githuber\\Module\\ModuleAbstract' not found in wp-content/plugins/wp-githuber-md/src/Modules/Highlight.php:19
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-githuber-md/vendor/league/html-to-markdown/src/Converter/HeaderConverter.php:9
- > PHP Fatal error
Uncaught Error: Class 'Githuber\\Module\\ModuleAbstract' not found in wp-content/plugins/wp-githuber-md/src/Modules/Prism.php:19
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-githuber-md/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php:9
- > PHP Fatal error
Uncaught Error: Class 'Githuber\\Controller\\ControllerAbstract' not found in wp-content/plugins/wp-githuber-md/src/Controllers/HtmlToMarkdown.php:19
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-githuber-md/vendor/league/html-to-markdown/src/Converter/ListItemConverter.php:9
- > PHP Fatal error
Uncaught Error: Class 'ParsedownTest' not found in wp-content/plugins/wp-githuber-md/vendor/erusev/parsedown-extra/test/ParsedownExtraTest.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #11, #12 in wp-githuber-md/assets to your readme.txt
wp-githuber-md/githuber-md.php 92% from 13 tests
The main file in "WP Githuber MD - WordPress Markdown Editor" v. 1.16.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-githuber-md.php" instead of "githuber-md.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-githuber-md/vendor/bin/html-to-markdown.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1,417 | 9,477 | 15,560 | 67,960 |
CSS | 218 | 1,487 | 616 | 9,878 |
PHP | 104 | 2,199 | 3,546 | 8,868 |
Sass | 20 | 572 | 46 | 5,657 |
JSON | 8 | 6 | 0 | 3,919 |
Markdown | 14 | 536 | 0 | 3,268 |
PO File | 2 | 374 | 488 | 1,051 |
SVG | 2 | 0 | 0 | 576 |
HTML | 9 | 39 | 0 | 451 |
Ruby | 2 | 14 | 30 | 18 |
YAML | 1 | 2 | 0 | 9 |
XML | 1 | 0 | 0 | 8 |
Bourne Shell | 1 | 3 | 1 | 6 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 3 | 5.17% |
▷ Concrete classes | 55 | 94.83% |
▷ Final classes | 1 | 1.82% |
Methods | 463 | |
▷ Static methods | 16 | 3.46% |
▷ Public methods | 362 | 78.19% |
▷ Protected methods | 84 | 18.14% |
▷ Private methods | 17 | 3.67% |
Functions | 26 | |
▷ Named functions | 17 | 65.38% |
▷ Anonymous functions | 9 | 34.62% |
Constants | 32 | |
▷ Global constants | 8 | 25.00% |
▷ Class constants | 24 | 75.00% |
▷ Public constants | 24 | 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
888 PNG files occupy 4.11MB with 1.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/emojify/images/pear.png | 6.77KB | 3.50KB | ▼ 48.28% |
assets/vendor/emojify/images/radio_button.png | 2.15KB | 2.64KB | 0.00% |
assets/vendor/emojify/images/bank.png | 5.45KB | 2.84KB | ▼ 47.98% |
assets/vendor/emojify/images/dromedary_camel.png | 5.02KB | 2.64KB | ▼ 47.38% |
assets/vendor/emojify/images/tomato.png | 5.61KB | 3.21KB | ▼ 42.90% |