71% dp-intro-tours

Code Review | Intro Tour Tutorial DeepPresentation

WordPress plugin Intro Tour Tutorial DeepPresentation scored71%from 54 tests.

About plugin

  • Plugin page: dp-intro-tours
  • Plugin version: 6.4.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Mar 20, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 151
  • Update frequency: every 8.9 days
  • Top authors: tomasgroulik (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

100+ active /8,728 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲6.54MB] [CPU: ▲52.36ms] 50% from 4 tests

A check of server-side resources used by Intro Tour Tutorial DeepPresentation
The following require your attention
  • RAM: Total memory usage should be kept under 10MB (currently 10.44MB on /wp-admin/post-new.php?post_type=dp_intro_tours)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 6.54MB on /wp-admin/edit.php?post_type=dp_intro_tours)
PageMemory (MB)CPU Time (ms)
Home /9.57 ▲6.1196.57 ▲52.43
Dashboard /wp-admin10.02 ▲6.71106.85 ▲58.29
Posts /wp-admin/edit.php10.02 ▲6.6689.88 ▲38.86
Add New Post /wp-admin/post-new.php12.79 ▲6.90153.66 ▲65.42
Media Library /wp-admin/upload.php9.93 ▲6.7095.00 ▲59.85
Post Types /wp-admin/edit.php?post_type=acf-post-type9.9384.28
Field Groups /wp-admin/edit.php?post_type=acf-field-group9.9279.86
Add New /wp-admin/post-new.php?post_type=dp_intro_tours10.44104.07
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy9.9386.67
Intro Tour Tutorial /wp-admin/options-general.php?page=dp_intro_tours9.8572.17
All Tours /wp-admin/edit.php?post_type=dp_intro_tours9.8877.30

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 707 new files
Database: no new tables, 14 new options
New WordPress options
widget_theysaidso_widget
dp_it_text_styles_options
acf_version
dp_it_general_options
theysaidso_admin_options
can_compress_scripts
dp_it_basic_options
widget_recent-posts
widget_recent-comments
dp_it_mobile_breakpoints_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Intro Tour Tutorial DeepPresentation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,167 ▲40514.14 ▼0.2011.72 ▲10.0242.71 ▼1.45
Dashboard /wp-admin2,389 ▲2216.04 ▲0.4793.32 ▼2.4146.38 ▲0.92
Posts /wp-admin/edit.php2,186 ▲862.04 ▲0.1039.40 ▼2.5038.05 ▲1.79
Add New Post /wp-admin/post-new.php6,723 ▲5,18728.67 ▲5.431,012.93 ▲341.8536.01 ▼18.84
Media Library /wp-admin/upload.php2,035 ▲6388.36 ▲4.22239.18 ▲142.4953.18 ▲11.58
Post Types /wp-admin/edit.php?post_type=acf-post-type1,7722.4337.6088.86
Field Groups /wp-admin/edit.php?post_type=acf-field-group1,7422.2838.9275.93
Add New /wp-admin/post-new.php?post_type=dp_intro_tours5,6308.99321.79146.65
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy1,7732.2740.7769.63
Intro Tour Tutorial /wp-admin/options-general.php?page=dp_intro_tours3,11312.24188.67102.89
All Tours /wp-admin/edit.php?post_type=dp_intro_tours1,2622.2842.5031.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 14 options in the database
    • can_compress_scripts
    • acf_version
    • dpit_db_version
    • dpit_plugin_build_type
    • dp_it_mobile_breakpoints_options
    • widget_theysaidso_widget
    • dp_it_text_styles_options
    • widget_recent-comments
    • dp_it_general_options
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/dp-intro-tours/admin/partials/dp-intro-tours-admin-display.php
    • > /wp-content/plugins/dp-intro-tours/public/partials/dp-intro-tours-public-display.php
  • 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dp-intro-tours/vendor/acf/includes/fields/class-acf-field-file.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'IntroToursSabberworm\\CSS\\Renderable' not found in wp-content/plugins/dp-intro-tours/vendor/sabberworm/php-css-parser/build/Value/Value.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_add_filter_variations() in wp-content/plugins/dp-intro-tours/vendor/acf/includes/rest-api/acf-rest-api-functions.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dp-intro-tours/includes/dpit-acf-include.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dp-intro-tours/vendor/acf/includes/admin/views/acf-field-group/location-rule.php on line 7
    • > PHP Fatal error
      Uncaught Error: Interface 'IntroToursSabberworm\\CSS\\Renderable' not found in wp-content/plugins/dp-intro-tours/vendor/sabberworm/php-css-parser/build/CSSList/CSSList.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/dp-intro-tours/vendor/acf/includes/acf-field-functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'IntroToursSabberworm\\CSS\\Value\\PrimitiveValue' not found in wp-content/plugins/dp-intro-tours/vendor/sabberworm/php-css-parser/build/Value/CSSString.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dp-intro-tours/vendor/acf/includes/fields/class-acf-field-email.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/dp-intro-tours/vendor/acf/includes/fields/class-acf-field-true_false.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=dp_intro_tours
    • > Console-api (severe) in unknown
    /wp-content/plugins/dp-intro-tours/dist/main/dpit-admin-tour-edit-3c048cf5.js?ver=6.4.4 21:44750 Object

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #12 (Tour options - tour starting configuration) image required
You can look at the official readme.txt

dp-intro-tours/dp-intro-tours.php 92% from 13 tests

This is the main PHP file of "Intro Tour Tutorial DeepPresentation" version 6.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 529 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected208,985 lines of code in 518 files:
LanguageFilesBlank linesComment linesLines of code
PO File4747,57271,800114,114
PHP26611,25124,66141,211
JavaScript605,3198,29639,395
CSS297301,76713,169
JSON300694
SVG11200387
Markdown112015

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.22
▷ Minimum class complexity1.00
▷ Maximum class complexity301.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces17
Interfaces3
Traits0
Classes198
▷ Abstract classes94.55%
▷ Concrete classes18995.45%
▷ Final classes42.12%
Methods1,833
▷ Static methods27915.22%
▷ Public methods1,69192.25%
▷ Protected methods663.60%
▷ Private methods764.15%
Functions602
▷ Named functions57395.18%
▷ Anonymous functions294.82%
Constants100
▷ Global constants7979.00%
▷ Class constants2121.00%
▷ Public constants21100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
45 PNG files occupy 0.90MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/acf/assets/images/field-type-previews/field-preview-date-picker.png13.93KB6.34KB▼ 54.46%
vendor/acf/assets/images/field-type-previews/field-preview-oembed.png5.88KB2.87KB▼ 51.24%
vendor/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png0.08KB0.08KB0.00%
vendor/acf/assets/images/field-type-previews/field-preview-message.png3.11KB1.42KB▼ 54.36%
vendor/acf/assets/images/field-type-previews/field-preview-radio-button.png15.22KB6.14KB▼ 59.69%