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.21MB] [CPU: ▼4.73ms] Passed 4 tests
Server-side resources used by WordPress Steem
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.91 ▲1.51 |
Dashboard /wp-admin | 3.60 ▲0.25 | 45.89 ▼11.86 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 47.38 ▲1.48 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 82.02 ▼8.41 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 35.12 ▼0.13 |
Steem /wp-admin/options-general.php?page=wp-steem | 3.42 | 34.00 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Steem
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲100 | 14.48 ▲0.08 | 1.99 ▲0.24 | 42.35 ▲4.79 |
Dashboard /wp-admin | 2,224 ▲35 | 5.79 ▲0.86 | 100.76 ▼4.72 | 40.73 ▼0.14 |
Posts /wp-admin/edit.php | 2,110 ▲16 | 2.01 ▼0.00 | 42.06 ▲5.56 | 35.84 ▲6.26 |
Add New Post /wp-admin/post-new.php | 6,241 ▲4,708 | 26.12 ▲3.00 | 908.66 ▲234.57 | 55.40 ▼4.86 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.19 ▼0.04 | 105.99 ▲3.45 | 46.09 ▲1.24 |
Steem /wp-admin/options-general.php?page=wp-steem | 926 | 2.03 | 27.51 | 31.93 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/vendor/league/html-to-markdown/src/Converter/HardBreakConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/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/wp-steem/vendor/league/html-to-markdown/src/Converter/DivConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/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/wp-steem/vendor/league/html-to-markdown/src/Converter/CommentConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/vendor/league/html-to-markdown/src/Converter/PreformattedConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/vendor/league/html-to-markdown/src/Converter/ListItemConverter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/wp-steem/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/wp-steem/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)
No browser errors were detected
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
4 plugin tags: steemit, wp-steem, wordpress, steem
wp-steem/plugin.php 92% from 13 tests
The main PHP file in "WordPress Steem" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-steem.php" instead of "plugin.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/wp-steem/vendor/bin/html-to-markdown.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 676 | 1,130 | 2,315 |
CSS | 2 | 7 | 0 | 683 |
Markdown | 4 | 147 | 0 | 335 |
JSON | 3 | 0 | 0 | 131 |
JavaScript | 1 | 18 | 0 | 65 |
Bourne Shell | 1 | 3 | 5 | 9 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 1 | 3.45% |
Methods | 179 | |
▷ Static methods | 43 | 24.02% |
▷ Public methods | 164 | 91.62% |
▷ Protected methods | 4 | 2.23% |
▷ Private methods | 11 | 6.15% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.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