74% wp-steem

Code Review | WordPress Steem

WordPress plugin WordPress Steem scored74%from 54 tests.

About plugin

  • Plugin page: wp-steem
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Oct 23, 2017
  • Number of updates: 15
  • Update frequency: every 7.2 days
  • Top authors: recrypto (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /3,708 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.91 ▲1.51
Dashboard /wp-admin3.60 ▲0.2545.89 ▼11.86
Posts /wp-admin/edit.php3.65 ▲0.2947.38 ▲1.48
Add New Post /wp-admin/post-new.php6.14 ▲0.2582.02 ▼8.41
Media Library /wp-admin/upload.php3.46 ▲0.2335.12 ▼0.13
Steem /wp-admin/options-general.php?page=wp-steem3.4234.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲10014.48 ▲0.081.99 ▲0.2442.35 ▲4.79
Dashboard /wp-admin2,224 ▲355.79 ▲0.86100.76 ▼4.7240.73 ▼0.14
Posts /wp-admin/edit.php2,110 ▲162.01 ▼0.0042.06 ▲5.5635.84 ▲6.26
Add New Post /wp-admin/post-new.php6,241 ▲4,70826.12 ▲3.00908.66 ▲234.5755.40 ▼4.86
Media Library /wp-admin/upload.php1,409 ▲214.19 ▼0.04105.99 ▲3.4546.09 ▲1.24
Steem /wp-admin/options-general.php?page=wp-steem9262.0327.5131.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

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
3,542 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP416761,1302,315
CSS270683
Markdown41470335
JSON300131
JavaScript118065
Bourne Shell1359
DOS Batch1004

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 code0.41
Average class complexity9.53
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces3
Interfaces3
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes13.45%
Methods179
▷ Static methods4324.02%
▷ Public methods16491.62%
▷ Protected methods42.23%
▷ Private methods116.15%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants6
▷ Global constants350.00%
▷ Class constants350.00%
▷ Public constants3100.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