83% tour-operator-team

Code Review | LSX Tour Operator Team

WordPress plugin LSX Tour Operator Team scored 83% from 54 tests.

About plugin

  • Plugin page: tour-operator-team
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 21, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 23
  • Update frequency: every 85.6 days
  • Top authors: feedmymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,623 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
Installer ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼1.57ms] Passed 4 tests

An overview of server-side resources used by LSX Tour Operator Team
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2742.68 ▲3.47
Dashboard /wp-admin3.56 ▲0.2648.97 ▼0.85
Posts /wp-admin/edit.php3.68 ▲0.3247.88 ▲3.57
Add New Post /wp-admin/post-new.php6.14 ▲0.2684.48 ▼10.82
Media Library /wp-admin/upload.php3.48 ▲0.2638.07 ▲1.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

LSX Tour Operator Team: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.284.47 ▲2.3446.80 ▲0.49
Dashboard /wp-admin2,206 ▲215.84 ▲0.9699.35 ▼8.2538.50 ▼8.58
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0134.30 ▲0.0137.46 ▲2.39
Add New Post /wp-admin/post-new.php1,542 ▲823.20 ▲0.01652.86 ▼47.5850.60 ▼7.78
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0596.63 ▼14.0441.54 ▼6.75

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'LSX_TO_Team' not found in wp-content/plugins/tour-operator-team/classes/class-lsx-to-team-admin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/tour-operator-team/templates/content-widget-team.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'LSX_TO_Schema_Graph_Piece' not found in wp-content/plugins/tour-operator-team/classes/class-lsx-to-team-schema.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-team/includes/post-types/config-team.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/archive-team.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function term_description() in wp-content/plugins/tour-operator-team/templates/content-role.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function lsx_entry_before() in wp-content/plugins/tour-operator-team/templates/content-team.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/taxonomy-role.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tour-operator-team/includes/metaboxes/config-team.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/tour-operator-team/templates/single-team.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

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

The main PHP script in "LSX Tour Operator Team" version 1.2.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tour-operator-team.php" instead of "to-team.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 231 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,002 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP173895811,596
YAML450185
PO File16567143
XML113944
JavaScript151234

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity34.60
▷ Minimum class complexity3.00
▷ Maximum class complexity82.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods58
▷ Static methods00.00%
▷ Public methods58100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin