83% tour-operator-reviews

Code Review | LSX Tour Operator Reviews

WordPress plugin LSX Tour Operator Reviews scored83%from 54 tests.

About plugin

  • Plugin page: tour-operator-rev...
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 9, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 16
  • Update frequency: every 121.9 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼4.07ms] Passed 4 tests

Analyzing server-side resources used by LSX Tour Operator Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1943.28 ▲4.79
Dashboard /wp-admin3.49 ▲0.1850.96 ▲0.07
Posts /wp-admin/edit.php3.60 ▲0.2548.19 ▼8.00
Add New Post /wp-admin/post-new.php6.07 ▲0.1885.96 ▼9.06
Media Library /wp-admin/upload.php3.41 ▲0.1837.95 ▲0.72

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for LSX Tour Operator Reviews
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.59 ▼0.781.88 ▼0.3138.48 ▼5.15
Dashboard /wp-admin2,221 ▲185.81 ▲0.92101.22 ▼28.5138.58 ▼12.52
Posts /wp-admin/edit.php2,100 ▼32.06 ▲0.0540.82 ▼1.1637.77 ▼1.02
Add New Post /wp-admin/post-new.php1,526 ▼1417.58 ▼5.69673.86 ▼28.0060.39 ▲10.62
Media Library /wp-admin/upload.php1,397 ▼34.24 ▼0.01101.50 ▼11.5646.00 ▼0.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-reviews/includes/post-types/config-review.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-reviews/templates/archive-review.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/tour-operator-reviews/classes/class-to-reviews.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'LSX_TO_Schema_Graph_Piece' not found in wp-content/plugins/tour-operator-reviews/classes/class-to-review-schema.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'LSX_TO_Reviews' not found in wp-content/plugins/tour-operator-reviews/classes/class-to-reviews-admin.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'LSX_TO_Reviews' not found in wp-content/plugins/tour-operator-reviews/classes/class-to-reviews-frontend.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator-reviews/templates/content-review.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function lsx_to_is_single_disabled() in wp-content/plugins/tour-operator-reviews/templates/content-widget-review.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-reviews/templates/single-review.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-reviews/includes/metaboxes/config-review.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% 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 your attention: You can take inspiration from this readme.txt

tour-operator-reviews/to-reviews.php 77% from 13 tests

The entry point to "LSX Tour Operator Reviews" version 1.2.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("tour-operator-reviews.php" instead of "to-reviews.php")

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
There were no executable files found in this plugin1,497 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP142584531,135
YAML450185
PO File1434599
XML113944
JavaScript151234

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity29.20
▷ Minimum class complexity10.00
▷ Maximum class complexity63.00
Average method complexity4.07
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods46100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin