78% desert-companion

Code Review | Desert Companion

WordPress plugin Desert Companion scored78%from 54 tests.

About plugin

  • Plugin page: desert-companion
  • Plugin version: 1.0.54
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 28, 2022
  • Latest release: Nov 6, 2023
  • Number of updates: 65
  • Update frequency: every 6.7 days
  • Top authors: desertthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

8,000+ active /91,561 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.34ms] Passed 4 tests

A check of server-side resources used by Desert Companion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.72 ▲5.57
Dashboard /wp-admin3.34 ▼0.0150.21 ▼6.97
Posts /wp-admin/edit.php3.39 ▲0.0446.66 ▼7.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.02 ▼7.39
Media Library /wp-admin/upload.php3.26 ▲0.0334.63 ▲0.30

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Desert Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▼214.70 ▲0.461.79 ▲0.1238.24 ▲0.02
Dashboard /wp-admin2,195 ▲245.62 ▲0.1087.82 ▼16.9741.21 ▼1.00
Posts /wp-admin/edit.php2,112 ▲121.94 ▼0.0736.06 ▼0.1230.52 ▼2.76
Add New Post /wp-admin/post-new.php1,526 ▼1023.38 ▲0.19604.07 ▼128.4948.64 ▼2.33
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.00108.56 ▲8.3843.13 ▼0.68

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • item_details_page
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/desert-companion/inc/desert-import/public/partials/desert-import-public-display.php
  • 201× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'desert_companion_plugin_dirinc/themes/cosmobit/customizer-repeater-default.php' (include_path='.:/usr/share/php') in wp-content/plugins/desert-companion/inc/themes/celexo/celexo.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/desert-companion/inc/themes/suntech/customizer/softme-protect-section.php:210
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/desert-companion/inc/themes/chitvi/customizer/cosmobit-slider-section.php:185
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/desert-companion/inc/themes/celexo/front/section-service.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/desert-companion/inc/themes/chitvi/customizer/cosmobit-service-section.php:216
    • > PHP Warning
      require(desert_companion_plugin_dirinc/themes/atua/customizer-repeater-default.php): failed to open stream: No such file or directory in wp-content/plugins/desert-companion/inc/themes/avvy/avvy.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/desert-companion/inc/themes/caresoft/front/section-slider.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/desert-companion/inc/themes/atua/customizer-repeater-default.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/desert-companion/inc/themes/caresoft/front/section-information.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/desert-companion/inc/themes/flexora/customizer/cosmobit-information-section.php:125

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
Please fix the following attributes:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

desert-companion/desert-companion.php Passed 13 tests

The entry point to "Desert Companion" version 1.0.54 is a PHP file that has certain tags in its header comment area
70 characters long description:
Desert Companion Enhances Desert Themes with additional functionality.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,178 lines of code in 194 files:
LanguageFilesBlank linesComment linesLines of code
PHP1862,3022,40119,700
CSS33925363
JavaScript44984114
SVG1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity35.00
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity5.98
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods82
▷ Static methods33.66%
▷ Public methods7287.80%
▷ Protected methods56.10%
▷ Private methods56.10%
Functions240
▷ Named functions240100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
47 PNG files occupy 1.12MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/themes/cosmobit/assets/images/logo.png6.89KB2.98KB▼ 56.68%
inc/themes/celexo/assets/images/service/stock-market.png1.60KB1.58KB▼ 1.28%
inc/themes/celexo/assets/images/service/monitoring.png1.23KB1.21KB▼ 1.67%
inc/themes/softme/assets/images/service_card_bg.png6.82KB7.30KB0.00%
inc/themes/lazypress/assets/images/logo.png7.79KB3.58KB▼ 53.96%