79% steply

Code Review | Steply

WordPress plugin Steply scored 79% from 54 tests.

About plugin

  • Plugin page: steply
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Feb 13, 2019
  • Latest release: Feb 13, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: vivex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 270 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼138.35ms] Passed 4 tests

An overview of server-side resources used by Steply
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1331.40 ▲11.47
Dashboard /wp-admin3.07 ▲0.0247.19 ▲0.18
Posts /wp-admin/edit.php3.13 ▲0.0248.23 ▲6.03
Add New Post /wp-admin/post-new.php5.43 ▼0.0094.61 ▼561.23
Media Library /wp-admin/upload.php3.02 ▲0.0234.14 ▲1.62
Steply Settings /wp-admin/options-general.php?page=steply2.9626.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 2 new options
New WordPress options
steply_main_color
steply_text_color

Browser metrics Passed 4 tests

This is an overview of browser requirements for Steply
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,712 ▲11616.00 ▲0.2010.69 ▲1.4147.79 ▼0.38
Dashboard /wp-admin2,980 ▲495.98 ▼0.02139.68 ▼17.96105.53 ▼10.61
Posts /wp-admin/edit.php2,746 ▲72.71 ▼0.0065.82 ▼3.2694.07 ▲8.29
Add New Post /wp-admin/post-new.php1,677 ▼618.83 ▲0.12409.52 ▲19.88109.72 ▼0.93
Media Library /wp-admin/upload.php1,817 ▲105.04 ▼0.02160.22 ▼1.07115.71 ▼3.23
Steply Settings /wp-admin/options-general.php?page=steply1,0872.0960.2679.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 2 options
    • steply_main_color
    • steply_text_color

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=steply
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=steply
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steply/steply.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/steply/settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: howoto, tutorial, steps

steply/steply.php Passed 13 tests

The main PHP script in "Steply" version 0.1 is automatically included on every request by WordPress
62 characters long description:
Adds wikihow style step by step UI, good for tutorial websites

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
Success! There were no dangerous files found in this plugin128 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121096
CSS22032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin