89% action-runner

Code Review | Action Runner by The Rite Sites

WordPress plugin Action Runner by The Rite Sites scored89%from 54 tests.

About plugin

  • Plugin page: action-runner
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Nov 25, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: theritesites (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Action Runner by The Rite Sites
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.97 ▼3.78
Dashboard /wp-admin3.31 ▲0.0143.89 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0049.40 ▲2.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.48 ▼14.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.93 ▲4.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Action Runner by The Rite Sites
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.091.89 ▲0.3640.52 ▼0.35
Dashboard /wp-admin2,192 ▲155.48 ▼0.1987.31 ▲1.1436.67 ▼7.52
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0240.07 ▲2.9135.75 ▲4.00
Add New Post /wp-admin/post-new.php1,536 ▲823.19 ▼0.02684.13 ▼2.7164.77 ▲5.06
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.10101.66 ▼1.5347.28 ▲2.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

action-runner/action-runner-by-the-rite-sites.php 77% from 13 tests

"Action Runner by The Rite Sites" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("action-runner.php" instead of "action-runner-by-the-rite-sites.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP554192119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity5.75
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods12
▷ Static methods18.33%
▷ Public methods866.67%
▷ Protected methods00.00%
▷ Private methods433.33%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ 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
There are no PNG files in this plugin