89% admin-tour

Code Review | Admin Tour

WordPress plugin Admin Tour scored89%from 54 tests.

About plugin

  • Plugin page: admin-tour
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Nov 18, 2022
  • Number of updates: 14
  • Update frequency: every 30.0 days
  • Top authors: krishaweb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,618 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.29ms] Passed 4 tests

This is a short check of server-side resources used by Admin Tour
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.54 ▼2.36
Dashboard /wp-admin3.39 ▲0.0554.75 ▼14.35
Posts /wp-admin/edit.php3.44 ▲0.0854.55 ▼4.68
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.22 ▼23.77
Media Library /wp-admin/upload.php3.31 ▲0.0841.20 ▲5.34

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Tour
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲16913.25 ▼1.121.82 ▼0.1932.13 ▼11.67
Dashboard /wp-admin2,385 ▲2054.89 ▼0.77103.71 ▲12.6345.62 ▼3.50
Posts /wp-admin/edit.php2,115 ▲151.97 ▼0.0339.60 ▼0.6137.02 ▼6.81
Add New Post /wp-admin/post-new.php1,537 ▲1123.24 ▼0.02644.63 ▼17.5059.44 ▼8.21
Media Library /wp-admin/upload.php1,418 ▲214.31 ▲0.13109.19 ▲3.5544.55 ▼1.74

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tutorial, walkthrough, user-onboarding, admin guide, introduction

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

The main PHP script in "Admin Tour" version 1.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected583 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43698409
JavaScript1810105
CSS11069

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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

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