84% minim-by-tourwriter

Code Review | Tourwriter Itineraries

WordPress plugin Tourwriter Itineraries scored84%from 54 tests.

About plugin

  • Plugin page: minim-by-tourwriter
  • Plugin version: 2.2.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.0
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Jul 28, 2023
  • Number of updates: 14
  • Update frequency: every 87.6 days
  • Top authors: tourwriter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /5,288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.35ms] Passed 4 tests

Analyzing server-side resources used by Tourwriter Itineraries
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.49 ▼2.61
Dashboard /wp-admin3.39 ▲0.0945.25 ▼0.88
Posts /wp-admin/edit.php3.51 ▲0.1544.46 ▼0.13
Add New Post /wp-admin/post-new.php5.99 ▲0.1197.83 ▲2.23
Media Library /wp-admin/upload.php3.32 ▲0.0937.26 ▲4.03

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Tourwriter Itineraries
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.70 ▲0.341.69 ▲0.1543.00 ▲1.53
Dashboard /wp-admin2,213 ▲365.05 ▼0.5396.96 ▲9.4139.41 ▼1.10
Posts /wp-admin/edit.php2,103 ▲32.45 ▲0.3439.58 ▲3.8037.38 ▲0.07
Add New Post /wp-admin/post-new.php1,553 ▲2518.52 ▼4.91658.13 ▲6.3954.04 ▲1.94
Media Library /wp-admin/upload.php1,415 ▲124.47 ▲0.21105.89 ▲6.1143.32 ▼1.42

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minim-by-tourwriter/trunk/config.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minim-by-tourwriter/includes/admin/options-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function minim_get_options() in wp-content/plugins/minim-by-tourwriter/trunk/includes/minim/credentials.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minim-by-tourwriter/config.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minim-by-tourwriter/trunk/includes/admin/options-output.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minim-by-tourwriter/includes/minim/custom-fields.php:159
    • > PHP Fatal error
      Uncaught Error: Call to undefined function minim_get_options() in wp-content/plugins/minim-by-tourwriter/includes/minim/credentials.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minim-by-tourwriter/trunk/includes/minim/custom-fields.php:159

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
Please take inspiration from this readme.txt

minim-by-tourwriter/minim-by-tourwriter.php Passed 13 tests

Analyzing the main PHP file in "Tourwriter Itineraries" version 2.2.4
92 characters long description:
Integrate Tourwriter's software with your Wordpress website to display beautiful itineraries

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
Everything looks great! No dangerous files found in this plugin1,038 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP8131164631
JavaScript4146222366
CSS21041

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.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
No PNG images were found in this plugin