78% ultra-companion

Code Review | Ultra Companion – Companion plugin for WPoperation Themes

WordPress plugin Ultra Companion – Companion plugin for WPoperation Themes scored78%from 54 tests.

About plugin

  • Plugin page: ultra-companion
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 28, 2018
  • Latest release: Nov 7, 2022
  • Number of updates: 24
  • Update frequency: every 63.8 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /81,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.50MB] [CPU: ▼0.94ms] Passed 4 tests

An overview of server-side resources used by Ultra Companion – Companion plugin for WPoperation Themes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.32 ▼2.58
Dashboard /wp-admin3.88 ▲0.5852.38 ▲0.69
Posts /wp-admin/edit.php3.94 ▲0.5845.93 ▼1.26
Add New Post /wp-admin/post-new.php6.67 ▲0.7887.13 ▼0.59
Media Library /wp-admin/upload.php3.81 ▲0.5737.89 ▲4.10

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 121 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultra Companion – Companion plugin for WPoperation Themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18413.66 ▼0.716.31 ▲4.5340.45 ▼2.90
Dashboard /wp-admin2,242 ▲504.97 ▼0.13100.82 ▼28.5079.10 ▲34.49
Posts /wp-admin/edit.php2,160 ▲712.25 ▲0.2841.69 ▲4.7640.07 ▲5.72
Add New Post /wp-admin/post-new.php7,365 ▲5,84622.08 ▼1.141,029.62 ▲342.3055.75 ▲3.24
Media Library /wp-admin/upload.php1,424 ▲364.19 ▼0.01102.64 ▲0.4174.34 ▲30.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 33× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-select.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/section.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-checkbox.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-color.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/controls/range/template.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-palette.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-range.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/butterbean/tmpl/control-buttonset.php
    • > /wp-content/plugins/ultra-companion/inc/metabox/controls/color/template.php
    • > /wp-content/plugins/ultra-companion/ultra-companion.php
  • 30× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/controls/editor/class-control-editor.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-image.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-color.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-select-group.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-radio.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/settings/class-setting-array.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/controls/multiple-select/class-control-multiple-select.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Ultra_ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-media.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Ultra_ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-editor.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Ultra_ButterBean_Control' not found in wp-content/plugins/ultra-companion/inc/metabox/butterbean/inc/controls/class-control-buttonset.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The main file in "Ultra Companion – Companion plugin for WPoperation Themes" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
49 characters long description:
This is a companion plugin for WPoperation themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin25,694 lines of code in 107 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript235,3952,42920,312
PHP681,0282,7702,972
CSS12224622,009
Markdown41260401

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.91
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes26.06%
Methods178
▷ Static methods42.25%
▷ Public methods16894.38%
▷ Protected methods10.56%
▷ Private methods95.06%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ultra_eleven.png18.76KB1.36KB▼ 92.76%
assets/images/sidebar-default.png1.49KB0.37KB▼ 75.38%
assets/images/sale.png4.38KB0.67KB▼ 84.67%
assets/images/sidebar-left.png0.99KB0.12KB▼ 88.31%
assets/images/sidebar-no.png0.97KB0.11KB▼ 88.96%