78% futurio-extra

Code Review | Futurio Extra

WordPress plugin Futurio Extra scored78%from 54 tests.

About plugin

  • Plugin page: futurio-extra
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Nov 2, 2023
  • Number of updates: 111
  • Update frequency: every 16.4 days
  • Top authors: futuriowp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /474,401 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.07MB] [CPU: ▼6.88ms] Passed 4 tests

An overview of server-side resources used by Futurio Extra
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.07 ▲1.39
Dashboard /wp-admin3.39 ▲0.0447.58 ▼11.13
Posts /wp-admin/edit.php3.50 ▲0.1444.04 ▼5.63
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.63 ▼12.16
Media Library /wp-admin/upload.php3.31 ▲0.0836.54 ▲3.35

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Futurio Extra
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.20 ▼0.181.64 ▼0.3542.36 ▼3.24
Dashboard /wp-admin2,212 ▲325.63 ▲0.01109.24 ▲21.5949.16 ▲10.52
Posts /wp-admin/edit.php2,114 ▲111.99 ▼0.0235.96 ▼5.2532.68 ▼3.77
Add New Post /wp-admin/post-new.php1,542 ▲1623.26 ▼0.10638.76 ▼52.4653.35 ▼1.94
Media Library /wp-admin/upload.php1,411 ▲114.29 ▲0.1297.87 ▼8.8441.31 ▼4.74

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/futurio-extra/inc/framework/kirki-packages/settings/templates/metaboxes/installation-progress.php
    • > /wp-content/plugins/futurio-extra/inc/framework/kirki-packages/settings/templates/settings-template.php
    • > /wp-content/plugins/futurio-extra/inc/framework/kirki-packages/settings/templates/metaboxes/clear-font-cache.php
    • > /wp-content/plugins/futurio-extra/inc/framework/kirki-packages/settings/templates/metaboxes/documentation.php
  • 79× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Generic' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-generic/src/Field/Text.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/module-sections/src/Section_Types/Link.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Control\\Base' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-slider/src/Control/Slider.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-dashicons/src/Field/Dashicons.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-react-colorful/src/Field/ReactColorful.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/util/src/Setting/Site_Option.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/futurio-extra/inc/demo/classes/importers/class-wp-import.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Radio' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-radio/src/Field/Radio_Image.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field\\Radio' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-palette/src/Field/Palette.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki\\Field' not found in wp-content/plugins/futurio-extra/inc/framework/kirki-packages/control-sortable/src/Field/Sortable.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: demo, woocommerce, shortcodes, widgets, page builder...

futurio-extra/futurio-extra.php 92% from 13 tests

The primary PHP file in "Futurio Extra" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "3.3.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected55,218 lines of code in 402 files:
LanguageFilesBlank linesComment linesLines of code
PHP2185,17411,74624,937
JavaScript1152,5093,11013,320
JSON6008,430
CSS312781605,521
Sass23322341,812
SVG200746
TypeScript5845414
YAML17027
XML10011

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 123)
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.21
▷ Minimum class complexity1.00
▷ Maximum class complexity330.00
Average method complexity4.54
▷ Minimum method complexity1.00
▷ Maximum method complexity123.00
Code structure
Namespaces18
Interfaces0
Traits0
Classes165
▷ Abstract classes10.61%
▷ Concrete classes16499.39%
▷ Final classes127.32%
Methods840
▷ Static methods18021.43%
▷ Public methods67380.12%
▷ Protected methods13115.60%
▷ Private methods364.29%
Functions114
▷ Named functions7666.67%
▷ Anonymous functions3833.33%
Constants18
▷ Global constants1794.44%
▷ Class constants15.56%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
29 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/metabox/assets/images/media/video.png0.28KB0.28KB0.00%
inc/framework/assets/images/3cr.png0.91KB0.32KB▼ 64.81%
inc/metabox/assets/images/layout-right.png1.06KB0.12KB▼ 88.65%
inc/framework/assets/images/kirki-bottom.png1.51KB1.09KB▼ 27.89%
inc/framework/assets/images/1c.png0.77KB0.15KB▼ 80.03%