88% beautiful-steps

Code Review | Beautiful Steps

WordPress plugin Beautiful Steps scored 88% from 54 tests.

About plugin

  • Plugin page: beautiful-steps
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 5.8.1
  • First release: Mar 20, 2021
  • Latest release: Mar 21, 2021
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: andrewphanuit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 101 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼139.55ms] Passed 4 tests

A check of server-side resources used by Beautiful Steps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1635.33 ▲11.62
Dashboard /wp-admin3.13 ▲0.0745.48 ▼2.10
Posts /wp-admin/edit.php3.24 ▲0.1354.76 ▲3.52
Add New Post /wp-admin/post-new.php5.46 ▲0.0395.73 ▼559.50
Media Library /wp-admin/upload.php3.04 ▲0.0435.43 ▼0.13

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Beautiful Steps
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,917 ▲32317.54 ▲2.007.75 ▼2.1754.30 ▲4.95
Dashboard /wp-admin3,203 ▲2727.45 ▲1.34171.16 ▲18.46118.15 ▼9.24
Posts /wp-admin/edit.php3,004 ▲2654.04 ▲1.3490.55 ▲21.1795.68 ▼2.17
Add New Post /wp-admin/post-new.php1,536 ▼7918.43 ▼3.40365.28 ▲67.29118.83 ▲1.82
Media Library /wp-admin/upload.php1,850 ▲434.95 ▼0.07127.75 ▼41.91129.34 ▲1.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/beautiful-steps/inc/beautiful-steps-admin.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/beautiful-steps/beautiful-steps.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautiful-steps/inc/beautiful-steps-content.php:95

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (screenshot1.png), #2 (screenshot2.png)
The official readme.txt might help

beautiful-steps/beautiful-steps.php Passed 13 tests

The main file in "Beautiful Steps" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
38 characters long description:
Generate beautiful steps for your page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,097 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File1202656

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png79.67KB28.79KB▼ 63.87%
screenshot-2.png53.34KB18.06KB▼ 66.14%