78% warpsteem

Code Review | WarpSteem

WordPress plugin WarpSteem scored78%from 54 tests.

About plugin

  • Plugin page: warpsteem
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.4-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 16, 2018
  • Latest release: Aug 6, 2019
  • Number of updates: 16
  • Update frequency: every 18.4 days
  • Top authors: passionbull (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.72ms] Passed 4 tests

An overview of server-side resources used by WarpSteem
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.97 ▼0.11
Dashboard /wp-admin3.39 ▲0.0950.84 ▼7.48
Posts /wp-admin/edit.php3.50 ▲0.1550.83 ▼1.58
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.19 ▲2.31
Media Library /wp-admin/upload.php3.31 ▲0.0849.06 ▲12.83
WarpSteem settings /wp-admin/options-general.php?page=steem_post_updates3.2834.09

Server storage [IO: ▲0.04MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WarpSteem
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.361.68 ▼0.4043.52 ▼2.06
Dashboard /wp-admin2,199 ▲245.61 ▲0.0085.26 ▼29.0641.67 ▼4.55
Posts /wp-admin/edit.php2,104 ▲42.12 ▲0.0937.09 ▲0.2335.31 ▲2.36
Add New Post /wp-admin/post-new.php1,529 ▲320.96 ▼2.03625.85 ▼69.1968.06 ▼4.48
Media Library /wp-admin/upload.php1,404 ▲104.29 ▲0.1098.85 ▼3.8744.76 ▲0.42
WarpSteem settings /wp-admin/options-general.php?page=steem_post_updates9012.0223.2230.88

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=steem_post_updates
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/warpsteem/warpsteem.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
Please take inspiration from this readme.txt

warpsteem/warpsteem.php Passed 13 tests

The main file in "WarpSteem" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
66 characters long description:
When you write post on wordpress, this post is updated to steemit.

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
Everything looks great! No dangerous files found in this plugin341 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27230297
JavaScript17644

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity48.00
▷ Minimum class complexity48.00
▷ Maximum class complexity48.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected