80% onvoard

Code Review | OnVoard

WordPress plugin OnVoard scored 80% from 54 tests.

About plugin

  • Plugin page: onvoard
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 5.8.1
  • First release: Oct 19, 2021
  • Latest release: Oct 29, 2021
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: onvoard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 33 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.43MB] [CPU: ▼160.75ms] Passed 4 tests

An overview of server-side resources used by OnVoard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.02 ▲0.1836.63 ▲3.73
Dashboard /wp-admin3.31 ▲0.2548.57 ▼4.18
Posts /wp-admin/edit.php3.36 ▲0.2544.73 ▼2.59
Add New Post /wp-admin/post-new.php3.10 ▼2.3325.01 ▼631.32
Media Library /wp-admin/upload.php3.19 ▲0.1934.03 ▼4.89

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

This is an overview of browser requirements for OnVoard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13516.32 ▲0.7710.92 ▲0.2052.62 ▲8.24
Dashboard /wp-admin2,991 ▲575.91 ▼0.27136.97 ▼23.39137.14 ▲25.44
Posts /wp-admin/edit.php2,785 ▲462.73 ▲0.0263.50 ▼5.8389.57 ▲1.39
Add New Post /wp-admin/post-new.php45 ▼1,6380.90 ▼17.850.19 ▼401.3128.03 ▼88.23
Media Library /wp-admin/upload.php1,853 ▲435.03 ▼0.01131.89 ▼32.41138.44 ▲8.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-includes/wp-db.php+1323
    Undefined offset: 0
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% 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
7 plugin tags: email, marketing, email marketing, onvoard, woocommerce...

onvoard/onvoard.php 92% from 13 tests

The main file in "OnVoard" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.5")

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 plugin1,073 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP620923990
CSS111079
SVG2004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.80
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1422.22%
▷ Public methods63100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin