99% admin-tour

Code Review | Admin Tour

WordPress plugin Admin Tour scored 99% from 54 tests.

About plugin

  • Plugin page: admin-tour
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.9.2
  • First release: Sep 24, 2021
  • Latest release: Jan 18, 2022
  • Number of updates: 9
  • Update frequency: every 12.9 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 414 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Admin Tour
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1255.08 ▲5.07
Dashboard /wp-admin3.50 ▲0.0934.74 ▲1.31
Posts /wp-admin/edit.php3.72 ▲0.0838.75 ▲0.08
Add New Post /wp-admin/post-new.php6.96 ▼0.0195.52 ▼1,180.56
Media Library /wp-admin/upload.php3.37 ▲0.0824.27 ▼0.21

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Tour: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,025 ▲27916.30 ▲0.556.04 ▼1.322.47 ▲0.21
Dashboard /wp-admin3,138 ▲2846.55 ▲0.46128.77 ▼8.75172.39 ▲15.77
Posts /wp-admin/edit.php2,709 ▲213.24 ▲0.0064.03 ▼2.50141.00 ▼3.96
Add New Post /wp-admin/post-new.php1,683 ▼2819.46 ▼1.58390.95 ▼54.67158.16 ▲5.01
Media Library /wp-admin/upload.php1,713 ▲155.58 ▲0.12152.02 ▲13.54198.60 ▲10.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: user-onboarding, introduction, admin guide, tutorial, walkthrough

admin-tour/admin-tour.php 85% from 13 tests

The main file in "Admin Tour" v. 1.2 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:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Description: The description should be shorter than 140 characters (currently 149 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
There were no executable files found in this plugin580 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43698409
JavaScript1810105
CSS11066

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity4.62
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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