10% steemeasy

Code Review | Steemeasy

WordPress plugin Steemeasy scored10%from 54 tests.

About plugin

  • Plugin page: steemeasy
  • Plugin version: 0.5.7
  • PHP compatiblity: 5.6.10+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.4-5.2.0
  • WordPress version: 6.3.1
  • First release: Jan 4, 2018
  • Latest release: Nov 25, 2019
  • Number of updates: 22
  • Update frequency: every 31.4 days
  • Top authors: sean0010 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,483 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'plugin_activation' not found or invalid function name

Server metrics [RAM: ▼0.53MB] [CPU: ▼24.72ms] Passed 4 tests

This is a short check of server-side resources used by Steemeasy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.49 ▼38.12
Dashboard /wp-admin3.10 ▼0.2130.11 ▼21.95
Posts /wp-admin/edit.php3.24 ▼0.1233.07 ▼16.28
Add New Post /wp-admin/post-new.php5.48 ▼0.4173.63 ▼22.54
Media Library /wp-admin/upload.php3.18 ▼0.0530.31 ▼8.08

Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
sc2_appname
beneficiary_account
widget_recent-comments
theysaidso_admin_options
beneficiary_percentage
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Steemeasy: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲11218.93 ▲4.3715.33 ▲13.1441.09 ▼2.46
Dashboard /wp-admin2,222 ▲315.83 ▼0.0793.63 ▼11.4339.26 ▼8.41
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0239.97 ▲2.2236.08 ▼0.50
Add New Post /wp-admin/post-new.php1,551 ▲1622.91 ▼0.32653.70 ▲34.6152.23 ▼5.57
Media Library /wp-admin/upload.php1,404 ▲164.23 ▼0.0097.26 ▼3.2443.07 ▼0.75

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'plugin_uninstall' not found or invalid function name
  • This plugin does not fully uninstall, leaving 9 options in the database
    • beneficiary_percentage
    • sc2_appname
    • can_compress_scripts
    • db_upgraded
    • beneficiary_account
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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 | 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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/steemeasy/steem.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: steem, steemeasy

steemeasy/steem.php 85% from 13 tests

The primary PHP file in "Steemeasy" version 0.5.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("steemeasy.php" instead of "steem.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,949 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9178991,561
CSS1100185
PHP12327168
Markdown118035

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin