89% bytes-route-digital-adoption-platform

Code Review | Bytes Route - Digital Adoption Platform

WordPress plugin Bytes Route - Digital Adoption Platform scored89%from 54 tests.

About plugin

  • Plugin page: bytes-route-digit...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2023
  • Latest release: Jul 20, 2023
  • Number of updates: 3
  • Update frequency: every 30.0 days
  • Top authors: bytesroute (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /204 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.87ms] Passed 4 tests

Analyzing server-side resources used by Bytes Route - Digital Adoption Platform
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0339.85 ▼8.80
Dashboard /wp-admin3.38 ▼0.0151.45 ▼17.49
Posts /wp-admin/edit.php3.43 ▲0.0350.44 ▼6.51
Add New Post /wp-admin/post-new.php5.96 ▲0.0386.45 ▼14.68
Media Library /wp-admin/upload.php3.30 ▲0.0339.04 ▼1.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Bytes Route - Digital Adoption Platform
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.72 ▲0.111.69 ▼0.4140.55 ▼2.91
Dashboard /wp-admin2,210 ▲335.62 ▼0.0385.44 ▼14.5841.19 ▼3.32
Posts /wp-admin/edit.php2,112 ▲122.01 ▼0.0037.30 ▼2.3533.80 ▼5.58
Add New Post /wp-admin/post-new.php1,536 ▲1023.72 ▲0.43760.94 ▲44.5452.98 ▼0.94
Media Library /wp-admin/upload.php1,415 ▲154.19 ▼0.0294.90 ▼0.0143.46 ▲2.51

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 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 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: product tours, tooltip, walkthrough, onboarding, user onboarding...

bytes-route-digital-adoption-platform/bytes-route.php 77% from 13 tests

This is the main PHP file of "Bytes Route - Digital Adoption Platform" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bytes-route-digital-adoption-platform.php" instead of "bytes-route.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)

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 detected161 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22735109
SVG10052

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.33
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%
Functions4
▷ Named functions4100.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
5 PNG files occupy 0.45MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png210.60KB56.87KB▼ 73.00%
assets/banner-772x250.png76.31KB23.06KB▼ 69.78%
assets/screenshot-2.png82.87KB36.30KB▼ 56.20%
assets/screenshot-3.png50.86KB23.93KB▼ 52.94%
assets/screenshot-1.png35.91KB18.39KB▼ 48.78%