79% wordsteem

Code Review | WordSteem

WordPress plugin WordSteem scored79%from 54 tests.

About plugin

  • Plugin page: wordsteem
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jun 28, 2018
  • Latest release: Jul 10, 2018
  • Number of updates: 16
  • Update frequency: every 0.8 days
  • Top authors: Cipiko3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.36ms] Passed 4 tests

This is a short check of server-side resources used by WordSteem
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1844.12 ▲3.51
Dashboard /wp-admin3.55 ▲0.2155.15 ▲5.31
Posts /wp-admin/edit.php3.60 ▲0.2050.05 ▼0.02
Add New Post /wp-admin/post-new.php6.09 ▲0.1691.28 ▼10.24
Media Library /wp-admin/upload.php3.41 ▲0.1439.58 ▲5.67

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WordSteem
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.35 ▼0.201.72 ▲0.0042.23 ▼0.90
Dashboard /wp-admin2,215 ▲355.64 ▲0.0685.46 ▼6.1240.20 ▼3.34
Posts /wp-admin/edit.php2,120 ▲201.97 ▼0.0235.37 ▼5.6932.99 ▼4.95
Add New Post /wp-admin/post-new.php6,331 ▲4,80518.76 ▼4.55894.03 ▲264.9470.82 ▲15.33
Media Library /wp-admin/upload.php1,414 ▲144.29 ▲0.1196.57 ▼5.6246.02 ▲1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/wordsteem/wordsteem.php
    • > /wp-content/plugins/wordsteem/inc/Init.php
    • > /wp-content/plugins/wordsteem/inc/Api/SettingsApi.php
    • > /wp-content/plugins/wordsteem/inc/Api/Callbacks/AdminCallbacks.php
    • > /wp-content/plugins/wordsteem/inc/Base/Deactivate.php
    • > /wp-content/plugins/wordsteem/inc/MetaBoxes/Post.php
    • > /wp-content/plugins/wordsteem/inc/Base/Enqueue.php
    • > /wp-content/plugins/wordsteem/inc/Base/SettingsLinks.php
    • > /wp-content/plugins/wordsteem/inc/Base/Notices.php
    • > /wp-content/plugins/wordsteem/inc/Pages/Admin.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/wordsteem/templates/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: steem, steemit, wordsteem, blockchain

wordsteem/wordsteem.php Passed 13 tests

Analyzing the main PHP file in "WordSteem" version 1.0.0
25 characters long description:
SteemIt blockchain plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,212 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP23246244977
CSS1260139
JavaScript122062
JSON20020
SVG20114

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.13
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods67
▷ Static methods913.43%
▷ Public methods6495.52%
▷ Protected methods00.00%
▷ Private methods34.48%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.26MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png47.10KB15.02KB▼ 68.11%
assets/screenshot-2.png100.84KB27.79KB▼ 72.44%
assets/screenshot-1.png116.80KB30.10KB▼ 74.23%