84% steady-wp

Code Review | Steady for WordPress

WordPress plugin Steady for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: steady-wp
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2017
  • Latest release: Aug 9, 2023
  • Number of updates: 63
  • Update frequency: every 33.1 days
  • Top authors: steadyhq (44.44%)gregorysteady (30.16%)steadybot (20.63%)angelikasteady (9.52%)

Code review

54 tests

User reviews

9 reviews

Install metrics

600+ active / 10,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.19ms] Passed 4 tests

An overview of server-side resources used by Steady for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.74 ▼5.68
Dashboard /wp-admin3.33 ▲0.0344.93 ▼8.01
Posts /wp-admin/edit.php3.38 ▲0.0346.46 ▲4.52
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.65 ▼2.07
Media Library /wp-admin/upload.php3.26 ▲0.0334.51 ▼1.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Steady for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.22 ▼1.421.70 ▼0.0939.13 ▼6.20
Dashboard /wp-admin2,236 ▲454.96 ▼0.0896.04 ▼18.7771.58 ▲27.16
Posts /wp-admin/edit.php2,125 ▲362.03 ▼0.0834.53 ▲0.6233.46 ▼0.24
Add New Post /wp-admin/post-new.php6,449 ▲4,93520.48 ▲2.921,019.98 ▲367.6353.77 ▼2.38
Media Library /wp-admin/upload.php1,421 ▲334.19 ▼0.0392.85 ▼23.1977.98 ▲30.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/steady-wp/admin/partials/steady-wp-admin-display.php:4

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 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Requires php: Invalid plugin version format
The official readme.txt might help

steady-wp/steady-wp.php 92% from 13 tests

Analyzing the main PHP file in "Steady for WordPress" version 1.3.2
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 141 characters long)

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
Good job! No executable or dangerous file extensions detected891 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP11178357653
JavaScript3159139
PO File1222959
CSS34439
JSON1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.71
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods52
▷ Static methods35.77%
▷ Public methods4178.85%
▷ Protected methods00.00%
▷ Private methods1121.15%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon_success.png0.87KB0.53KB▼ 38.54%
admin/img/icon_20.png1.32KB0.66KB▼ 49.93%
admin/img/icon_16.png1.08KB0.55KB▼ 48.87%
admin/img/paywall-tag.png49.75KB24.10KB▼ 51.55%
admin/img/icon_fail.png0.90KB0.56KB▼ 37.36%