77% themeisle-companion

Code Review | Orbit Fox by ThemeIsle

WordPress plugin Orbit Fox by ThemeIsle scored77%from 54 tests.

About plugin

  • Plugin page: themeisle-companion
  • Plugin version: 2.10.26
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Aug 4, 2023
  • Number of updates: 163
  • Update frequency: every 15.1 days
  • Top authors: codeinwp (55.21%)themeisle (45.4%)

Code review

54 tests

User reviews

315 reviews

Install metrics

200,000+ active /10,769,554 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲2.41MB] [CPU: ▲10.35ms] 75% from 4 tests

Analyzing server-side resources used by Orbit Fox by ThemeIsle
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,651.60ms on /wp-admin/admin.php?page=obfx_companion)
PageMemory (MB)CPU Time (ms)
Home /5.73 ▲2.2754.42 ▲15.64
Dashboard /wp-admin5.78 ▲2.4466.40 ▲5.91
Posts /wp-admin/edit.php5.82 ▲2.4661.25 ▲12.00
Add New Post /wp-admin/post-new.php8.40 ▲2.51100.54 ▲7.84
Media Library /wp-admin/upload.php5.70 ▲2.4761.26 ▲25.41
Template Directory /wp-admin/admin.php?page=obfx_template_dir5.7054.83
About Us /wp-admin/admin.php?page=ti-about-themeisle_companion6.673,739.62
General Settings /wp-admin/admin.php?page=obfx_companion6.921,651.60

Server storage [IO: ▲5.71MB] [DB: ▲1.11MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 720 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
module_check_time
widget_recent-posts
widget_recent-comments
db_upgraded
themeisle_companion_install
obfx_new_user

Browser metrics Passed 4 tests

This is an overview of browser requirements for Orbit Fox by ThemeIsle
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲20314.75 ▲0.161.56 ▼0.0228.74 ▼9.71
Dashboard /wp-admin2,394 ▲2175.59 ▲0.0482.21 ▼1.1346.95 ▲2.97
Posts /wp-admin/edit.php2,175 ▲752.03 ▲0.0834.27 ▼2.8536.44 ▲3.43
Add New Post /wp-admin/post-new.php1,632 ▲10423.64 ▲0.60633.38 ▲15.7864.42 ▼4.41
Media Library /wp-admin/upload.php1,483 ▲864.22 ▲0.1197.08 ▼15.8544.78 ▼2.14
Template Directory /wp-admin/admin.php?page=obfx_template_dir9756.27144.4530.70
About Us /wp-admin/admin.php?page=ti-about-themeisle_companion1,1706.4461.0049.75
General Settings /wp-admin/admin.php?page=obfx_companion1,1117.9982.6135.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 9 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • obfx_new_user
    • module_check_time
    • themeisle_companion_install
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/themeisle-companion/obfx_modules/mystock-import/inc/photos.php
  • 363× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/themeisle-content-forms/library/mailerlite/vendor/guzzlehttp/psr7/src/NoSeekStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/themeisle-content-forms/library/mailerlite/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/themeisle-companion/vendor/codeinwp/full-width-page-templates/themes/poseidon/inline-style.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'ThemeIsle\\ElementorExtraWidgets\\Premium_Placeholder' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/elementor-extra-widgets/widgets/elementor/placeholders/share-buttons.php:5
    • > PHP Warning
      require_once(TI_CONTENT_FORMS_PATH/includes/widgets-public/widget_actions_base.php): failed to open stream: No such file or directory in wp-content/plugins/themeisle-companion/vendor/codeinwp/themeisle-content-forms/includes/widgets-public/registration_public.php on line 10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/themeisle-content-forms/library/mailerlite/vendor/guzzlehttp/psr7/src/Uri.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/themeisle-companion/obfx_modules/beaver-widgets/init.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/themeisle-content-forms/library/mailerlite/vendor/php-http/guzzle6-adapter/src/Promise.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ThemeIsle\\ElementorExtraWidgets\\Premium_Placeholder' not found in wp-content/plugins/themeisle-companion/vendor/codeinwp/elementor-extra-widgets/widgets/elementor/placeholders/progress-circle.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_add_inline_style() in wp-content/plugins/themeisle-companion/vendor/codeinwp/full-width-page-templates/themes/consulting/inline-style.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in themeisle-companion/assets to your readme.txt
The official readme.txt is a good inspiration

themeisle-companion/themeisle-companion.php 92% from 13 tests

Analyzing the main PHP file in "Orbit Fox by ThemeIsle" version 2.10.26
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected76,922 lines of code in 659 files:
LanguageFilesBlank linesComment linesLines of code
PHP5618,87519,85963,166
Markdown212,15204,400
SVG4002,710
CSS22540312,537
JSON6002,081
JavaScript332031541,674
Sass10610337
Dockerfile18010
YAML1007

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.51
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces64
Interfaces49
Traits15
Classes351
▷ Abstract classes113.13%
▷ Concrete classes34096.87%
▷ Final classes11834.71%
Methods2,543
▷ Static methods30712.07%
▷ Public methods2,11483.13%
▷ Protected methods813.19%
▷ Private methods34813.68%
Functions327
▷ Named functions17453.21%
▷ Anonymous functions15346.79%
Constants264
▷ Global constants9335.23%
▷ Class constants17164.77%
▷ Public constants16495.91%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
obfx_modules/companion-legacy/inc/hestia/inc/img/clients3.png2.67KB1.76KB▼ 34.08%
dashboard/assets/orbit-fox.png8.26KB4.01KB▼ 51.44%
obfx_modules/companion-legacy/inc/hestia/inc/img/clients2.png2.92KB1.98KB▼ 32.22%
obfx_modules/companion-legacy/inc/hestia/inc/img/clients5.png2.89KB1.45KB▼ 49.90%
obfx_modules/companion-legacy/inc/hestia/inc/img/clients1.png2.71KB1.19KB▼ 55.96%