Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.10ms] Passed 4 tests
This is a short check of server-side resources used by Post to Dev.to
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.70 ▼0.95 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.66 ▼6.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.07 ▲8.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.49 ▲0.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.96 ▲1.89 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Post to Dev.to: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.15 ▼1.26 | 2.04 ▲0.19 | 43.93 ▼1.18 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.02 | 105.98 ▲1.96 | 40.63 ▲1.04 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 40.77 ▲0.95 | 35.79 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.02 ▲5.39 | 590.34 ▼90.17 | 56.15 ▲3.57 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.01 | 95.20 ▼1.36 | 40.77 ▼5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/ListItemConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/BlockquoteConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/HorizontalRuleConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/ImageConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/EmphasisConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/LinkConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/TextConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/ListBlockConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/HeaderConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/post-to-dev-to/vendor/league/html-to-markdown/src/Converter/ParagraphConverter.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: markdown
post-to-dev-to/index.php 92% from 13 tests
The main file in "Post to Dev.to" v. 0.0.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-to-dev-to.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,964 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 378 | 722 | 1,422 |
Markdown | 3 | 145 | 0 | 349 |
JSON | 3 | 0 | 0 | 121 |
CSS | 1 | 1 | 1 | 45 |
JavaScript | 1 | 0 | 3 | 27 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 7.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 1 | 4.17% |
Methods | 134 | |
▷ Static methods | 4 | 2.99% |
▷ Public methods | 118 | 88.06% |
▷ Protected methods | 2 | 1.49% |
▷ Private methods | 14 | 10.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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