84% wp-tourmake

Code Review | WP Tourmake

WordPress plugin WP Tourmake scored 84% from 54 tests.

About plugin

  • Plugin page: wp-tourmake
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Feb 22, 2019
  • Number of updates: 14
  • Update frequency: every 9.5 days
  • Top authors: tourmake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 814 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▲0.91ms] Passed 4 tests

Analyzing server-side resources used by WP Tourmake
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2337.88 ▼2.62
Dashboard /wp-admin3.53 ▲0.2346.73 ▲1.24
Posts /wp-admin/edit.php3.65 ▲0.2952.45 ▲4.37
Add New Post /wp-admin/post-new.php6.13 ▲0.2597.81 ▲0.67
Media Library /wp-admin/upload.php3.46 ▲0.2341.86 ▲8.67
Insert tour /wp-admin/admin.php?page=wp-tourmake-insert-tour3.4232.72
WP Tourmake /wp-admin/admin.php?page=wp-tourmake-main-page3.4229.00
My tours /wp-admin/admin.php?page=wp-tourmake-tour-list3.4232.52
Go Pro /wp-admin/admin.php?page=wp-tourmake-pro-page3.2925.75
Edit tour /wp-admin/admin.php?page=wp-tourmake-edit-tour3.4041.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: 2 new tables, 6 new options
New tables
wp_tourmake
wp_viewmake
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Tourmake
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲25013.97 ▼0.395.06 ▲3.5229.74 ▼11.81
Dashboard /wp-admin2,256 ▲685.00 ▼0.8995.99 ▼9.6377.47 ▲35.17
Posts /wp-admin/edit.php2,136 ▲472.08 ▲0.0837.65 ▲1.6839.08 ▲4.50
Add New Post /wp-admin/post-new.php1,708 ▲17522.44 ▼0.87726.42 ▲36.4729.19 ▼23.27
Media Library /wp-admin/upload.php1,426 ▲414.27 ▲0.0896.39 ▼12.8883.38 ▲35.60
Insert tour /wp-admin/admin.php?page=wp-tourmake-insert-tour8681.7225.4228.75
WP Tourmake /wp-admin/admin.php?page=wp-tourmake-main-page1,0121.7225.0544.28
My tours /wp-admin/admin.php?page=wp-tourmake-tour-list8431.7427.7939.42
Go Pro /wp-admin/admin.php?page=wp-tourmake-pro-page2,0253.39127.64126.98
Edit tour /wp-admin/admin.php?page=wp-tourmake-edit-tour8711.8526.2627.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/classes/vm_functions.php+161
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+29
    Trying to get property 'name' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+31
    Trying to get property 'link' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+32
    Trying to get property 'zoom' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+33
    Trying to get property 'fullscreen' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+35
    Trying to get property 'height' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+37
    Trying to get property 'width' of non-object
    • > GET request to /wp-admin/admin.php?page=wp-tourmake-edit-tour
    • > Notice in wp-content/plugins/wp-tourmake/includes/templates/tour-form.php+38
    Trying to get property 'id' of non-object

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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

wp-tourmake/wp-tourmake.php Passed 13 tests

The principal PHP file in "WP Tourmake" v. 1.0.1 is loaded by WordPress automatically on each request
109 characters long description:
WP Tourmake plugin generates shortcodes to add Tourmake's and Viewmake's virtual tours in your website pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,959 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42471831,292
PHP12154491,123
CSS36614351
PO File16290180
SVG11013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity11.60
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods41
▷ Static methods3687.80%
▷ Public methods3687.80%
▷ Protected methods00.00%
▷ Private methods512.20%
Functions12
▷ Named functions12100.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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/tourmake_icon-16x28.png0.45KB0.30KB▼ 33.69%
includes/images/logo_viewmake.png53.76KB10.20KB▼ 81.03%
includes/images/logo_tourmake.png23.10KB4.57KB▼ 80.23%