89% cbxtakeatour

Code Review | CBX Tour - User Walkthroughs/Guided Tours

WordPress plugin CBX Tour - User Walkthroughs/Guided Tours scored89%from 54 tests.

About plugin

  • Plugin page: cbxtakeatour
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2020
  • Latest release: Nov 14, 2023
  • Number of updates: 25
  • Update frequency: every 55.6 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,274 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.64MB] [CPU: ▲2.26ms] 75% from 4 tests

Analyzing server-side resources used by CBX Tour - User Walkthroughs/Guided Tours
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,602.25ms on /wp-admin/admin.php?page=cbxtakeatour-support)
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6849.21 ▲4.90
Dashboard /wp-admin3.98 ▲0.6350.84 ▼12.00
Posts /wp-admin/edit.php4.03 ▲0.6754.70 ▲6.33
Add New Post /wp-admin/post-new.php6.50 ▲0.6194.49 ▲9.82
Media Library /wp-admin/upload.php3.90 ▲0.6746.19 ▲10.31
Global Setting /wp-admin/admin.php?page=cbxtakeatour-settings3.9244.80
Tours /wp-admin/admin.php?page=cbxtakeatour-listing3.9640.36
Helps & Updates /wp-admin/admin.php?page=cbxtakeatour-support5.071,602.25

Server storage [IO: ▲2.32MB] [DB: ▲0.09MB] Passed 3 tests

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

Browser metrics Passed 4 tests

CBX Tour - User Walkthroughs/Guided Tours: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲26913.45 ▼0.8713.93 ▲12.1728.73 ▼15.86
Dashboard /wp-admin2,228 ▲535.56 ▼0.1592.21 ▼13.3776.61 ▲37.03
Posts /wp-admin/edit.php2,139 ▲391.99 ▼0.0137.42 ▼0.1333.73 ▼3.77
Add New Post /wp-admin/post-new.php6,393 ▲4,86727.54 ▲4.52916.81 ▲189.4938.23 ▼45.73
Media Library /wp-admin/upload.php1,424 ▲244.19 ▲0.04103.53 ▲6.1480.56 ▲31.97
Global Setting /wp-admin/admin.php?page=cbxtakeatour-settings1,2693.8779.6299.87
Tours /wp-admin/admin.php?page=cbxtakeatour-listing1,1961.8726.0432.40
Helps & Updates /wp-admin/admin.php?page=cbxtakeatour-support1,4101.9923.0940.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • cbxtakeatour_tools
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_cbxtakeatour-widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in cbxtakeatour/assets to your readme.txt
You can take inspiration from this readme.txt

cbxtakeatour/cbxtakeatour.php Passed 13 tests

The main PHP file in "CBX Tour - User Walkthroughs/Guided Tours" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Interactive tour creator for product/service feature for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected23,682 lines of code in 277 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2033,3572,24114,580
PHP221,1941,5624,449
Sass358141103,641
CSS131193953
SVG40259

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity48.27
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods151
▷ Static methods2717.88%
▷ Public methods14092.72%
▷ Protected methods42.65%
▷ Private methods74.64%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants5
▷ Global constants5100.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
20 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/sort_white.png0.30KB0.31KB0.00%
assets/images/cognitive-icon-11-64x64.png2.66KB1.60KB▼ 39.62%
assets/images/megaphone.png0.76KB0.76KB0.00%
assets/images/icon_w_24.png0.43KB0.39KB▼ 9.98%
assets/images/tour32.png0.40KB0.40KB0.00%