84% wp-to-steemit

Code Review | Wordpress to Steemit

WordPress plugin Wordpress to Steemit scored84%from 54 tests.

About plugin

  • Plugin page: wp-to-steemit
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.1
  • WordPress version: 6.3.1
  • First release: Dec 11, 2017
  • Latest release: Oct 22, 2022
  • Number of updates: 22
  • Update frequency: every 80.9 days
  • Top authors: gaupoit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,162 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.07MB] [CPU: ▼2.41ms] Passed 4 tests

This is a short check of server-side resources used by Wordpress to Steemit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0853.53 ▲12.99
Dashboard /wp-admin3.38 ▲0.0751.51 ▼0.56
Posts /wp-admin/edit.php3.49 ▲0.1352.08 ▲1.28
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.33 ▼15.30
Media Library /wp-admin/upload.php3.30 ▲0.0740.53 ▲4.94

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress to Steemit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲18618.67 ▲4.2792.93 ▲91.0438.95 ▼1.79
Dashboard /wp-admin2,222 ▲314.84 ▼0.09101.15 ▼11.0640.99 ▼1.65
Posts /wp-admin/edit.php2,105 ▲132.03 ▼0.1537.28 ▼6.7533.29 ▼3.54
Add New Post /wp-admin/post-new.php1,546 ▲1723.60 ▲0.16696.85 ▲72.4457.47 ▼3.80
Media Library /wp-admin/upload.php1,404 ▲164.31 ▲0.12109.61 ▼0.9147.14 ▼3.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-to-steemit/admin/partials/posttosteemit-admin-display.php
    • > /wp-content/plugins/wp-to-steemit/public/partials/posttosteemit-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: steamit, wordpress pages, cryptocurrency, sync, wordpress posts

wp-to-steemit/posttosteemit.php 92% from 13 tests

The primary PHP file in "Wordpress to Steemit" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-to-steemit.php" instead of "posttosteemit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin4,835 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
JSON100991
JavaScript6126186672
PHP13147539331
HTML1390169
CSS2081

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin