78% wp-tour

Code Review | WP Tour

WordPress plugin WP Tour scored78%from 54 tests.

About plugin

  • Plugin page: wp-tour
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: Jun 26, 2015
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: jurgennn85 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,192 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.65MB] [CPU: ▼16.11ms] Passed 4 tests

Server-side resources used by WP Tour
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.04 ▲1.55
Dashboard /wp-admin3.35 ▲0.0545.27 ▼10.14
Posts /wp-admin/edit.php3.41 ▲0.0450.85 ▲6.02
Add New Post /wp-admin/post-new.php3.14 ▼2.7533.59 ▼56.87
Media Library /wp-admin/upload.php3.28 ▲0.0435.64 ▲1.03
Tours /wp-admin/edit.php?post_type=tour3.3236.01
Nieuwe Tour /wp-admin/post-new.php?post_type=tour3.1431.58

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Tour
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.86 ▼0.418.98 ▲7.2738.50 ▼2.70
Dashboard /wp-admin2,225 ▲515.63 ▼0.0182.13 ▼7.0238.64 ▼1.73
Posts /wp-admin/edit.php2,124 ▲242.10 ▲0.1235.42 ▲1.2433.78 ▼5.20
Add New Post /wp-admin/post-new.php1,558 ▲3218.54 ▼4.53647.55 ▼34.5176.01 ▲23.57
Media Library /wp-admin/upload.php1,430 ▲304.25 ▲0.04103.78 ▼10.8342.81 ▼4.29
Tours /wp-admin/edit.php?post_type=tour1,1081.9732.6036.45
Nieuwe Tour /wp-admin/post-new.php?post_type=tour2,4717.69172.9272.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=tour
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD
    • > GET request to /wp-admin/post-new.php?post_type=tour
    • > Notice in wp-content/plugins/wp-tour/wp-tour.php+200
    Undefined index: element
    • > GET request to /wp-admin/post-new.php?post_type=tour
    • > Notice in wp-content/plugins/wp-tour/wp-tour.php+201
    Undefined index: position
    • > GET request to /wp-admin/post-new.php?post_type=tour
    • > Notice in wp-content/plugins/wp-tour/wp-tour.php+202
    Undefined index: order
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tour
    • > Notice in wp-content/plugins/wp-tour/wp-tour.php+217
    Trying to get property 'ID' of non-object

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-tour/wp-tour.php:31

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: tour, message, post

wp-tour/wp-tour.php 92% from 13 tests

The main file in "WP Tour" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin137 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13762132
CSS21274
JavaScript11201

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin