72% another-steempress

Code Review | AnotherSteempress

WordPress plugin AnotherSteempress scored72%from 54 tests.

About plugin

  • Plugin page: another-steempress
  • Plugin version: 0.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 26, 2018
  • Latest release: Mar 6, 2018
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: dm42net (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by AnotherSteempress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.14 ▼4.05
Dashboard /wp-admin3.33 ▲0.0244.91 ▼2.16
Posts /wp-admin/edit.php3.38 ▲0.0247.11 ▼2.64
Add New Post /wp-admin/post-new.php3.12 ▼2.7734.13 ▼68.51
Media Library /wp-admin/upload.php3.25 ▲0.0236.99 ▼0.13
AnotherSteempress /wp-admin/options-general.php?page=anothersteempress3.2931.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
anothersteempress
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for AnotherSteempress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.98 ▼0.405.54 ▲3.8236.83 ▼2.67
Dashboard /wp-admin2,214 ▲234.87 ▼0.02114.60 ▲10.1038.99 ▼6.70
Posts /wp-admin/edit.php2,094 ▲52.03 ▼0.0238.61 ▲1.6537.06 ▲3.47
Add New Post /wp-admin/post-new.php1,521 ▲723.19 ▲5.72701.31 ▲38.2771.19 ▲18.29
Media Library /wp-admin/upload.php1,399 ▲114.21 ▼0.03108.53 ▲3.9847.69 ▲3.87
AnotherSteempress /wp-admin/options-general.php?page=anothersteempress9562.0328.2527.38

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
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • anothersteempress
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=anothersteempress
    • > Notice in wp-content/plugins/another-steempress/admin/partials/anothersteempress-admin-display.php+74
    Undefined index: testnet-username
    • > GET request to /wp-admin/options-general.php?page=anothersteempress
    • > Notice in wp-content/plugins/another-steempress/admin/partials/anothersteempress-admin-display.php+77
    Undefined index: testnet-posting-key
    • > GET request to /wp-admin/options-general.php?page=anothersteempress
    • > Notice in wp-content/plugins/another-steempress/admin/class-anothersteempress-admin.php+158
    Undefined index: template

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/another-steempress/public/partials/anothersteempress-public-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/another-steempress/admin/partials/anothersteempress-useropts-display.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/another-steempress/admin/partials/anothersteempress-admin-display.php:25

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
5 plugin tags: wordpress, steem, steemit, monetization, blockchain

another-steempress/anothersteempress.php 85% from 13 tests

The entry point to "AnotherSteempress" version 0.8.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("another-steempress.php" instead of "anothersteempress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected632 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11203576626
JavaScript24546
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.14
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions5
▷ Named functions5100.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