10% multifox-plus

Code Review | Multifox Plus

WordPress plugin Multifox Plus scored10%from 54 tests.

About plugin

  • Plugin page: multifox-plus
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Feb 4, 2023
  • Number of updates: 27
  • Update frequency: every 15.9 days
  • Top authors: creativebrahma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,167 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/multifox-plus/modules/skin/customizer/settings/background-color.php+29
    Undefined index: body_bg_color

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

This is a short check of server-side resources used by Multifox Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.05 ▲1.5848.87 ▲4.52
Dashboard /wp-admin4.89 ▲1.5466.39 ▲1.60
Posts /wp-admin/edit.php4.94 ▲1.5862.30 ▲9.74
Add New Post /wp-admin/post-new.php7.64 ▲1.75112.36 ▲18.09
Media Library /wp-admin/upload.php4.81 ▲1.5855.40 ▲17.93
Add Header /wp-admin/post-new.php?post_type=mfx_headers7.6393.28
Footers /wp-admin/edit.php?post_type=mfx_footers4.8563.20
Add Footer /wp-admin/post-new.php?post_type=mfx_footers7.6395.96
Headers /wp-admin/edit.php?post_type=mfx_headers4.8552.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 482 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
multifox-customiser-option
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Multifox Plus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲6714.38 ▲0.181.74 ▼0.2543.44 ▲5.49
Dashboard /wp-admin2,243 ▲665.65 ▼0.0295.95 ▲0.3743.71 ▲4.33
Posts /wp-admin/edit.php2,157 ▲572.01 ▼0.0340.54 ▼1.3136.64 ▲0.58
Add New Post /wp-admin/post-new.php1,572 ▲2717.73 ▼5.65624.49 ▼41.1051.04 ▲1.34
Media Library /wp-admin/upload.php1,448 ▲514.23 ▼0.0398.14 ▼7.1243.56 ▼1.16
Add Header /wp-admin/post-new.php?post_type=mfx_headers6,23422.49933.8930.55
Footers /wp-admin/edit.php?post_type=mfx_footers1,1181.9833.6132.16
Add Footer /wp-admin/post-new.php?post_type=mfx_footers6,22922.24798.2530.34
Headers /wp-admin/edit.php?post_type=mfx_headers1,1212.0039.2136.45

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • multifox-customiser-option
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% 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 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
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/multifox-plus/modules/site-loader/layouts/loader-1/template.php
    • > /wp-content/plugins/multifox-plus/modules/site-loader/layouts/loader-2/template.php
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/advanced-carousel/class-widget-advanced-carousel.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/mailchimp/class-widget-mailchimp.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/ordered-list/class-widget-ordered-list.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/multifox-plus/elementor/class-common-widget-base.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/counter/class-widget-counter.php:8
    • > PHP Notice
      Undefined variable: count in wp-content/plugins/multifox-plus/modules/footer/layouts/standard-footer/template.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multifox-plus/modules/menu/walker/frontend-menu-walker.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/google-map/class-widget-google-map.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/shortcodes/elementor/widgets/button/class-widget-button.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'MultifoxElementor\\Widgets\\MultifoxElementorWidgetBase' not found in wp-content/plugins/multifox-plus/modules/menu/elementor/widgets/logo/class-widget-logo.php:8

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: two-column, one-column, customizer, archives, custom header...

multifox-plus/multifox-plus.php Passed 13 tests

The entry point to "Multifox Plus" version 1.1.6 is a PHP file that has certain tags in its header comment area
44 characters long description:
Adds additional features for Multifox Theme.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin68,801 lines of code in 384 files:
LanguageFilesBlank linesComment linesLines of code
PHP27910,20516,93944,726
JSON20012,222
CSS552,3613905,601
SVG41123,373
JavaScript437927282,665
Markdown1680214

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity26.41
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes188
▷ Abstract classes31.60%
▷ Concrete classes18598.40%
▷ Final classes00.00%
Methods1,854
▷ Static methods28315.26%
▷ Public methods1,45778.59%
▷ Protected methods723.88%
▷ Private methods32517.53%
Functions133
▷ Named functions10981.95%
▷ Anonymous functions2418.05%
Constants135
▷ Global constants10477.04%
▷ Class constants3122.96%
▷ Public constants31100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
28 PNG files occupy 3.56MB with 1.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/demo-content/screenshots/elsa-lite.png513.86KB192.00KB▼ 62.64%
modules/blog/customizer/images/one-half-column.png1.83KB0.79KB▼ 56.55%
modules/demo-content/screenshots/fason-lite.png548.06KB179.86KB▼ 67.18%
modules/demo-content/screenshots/gardening-lite.png264.47KB280.53KB0.00%
modules/sidebar/customizer/images/without-sidebar.png1.90KB0.52KB▼ 72.91%