84% redux-framework

Code Review | Redux Framework

WordPress plugin Redux Framework scored84%from 54 tests.

About plugin

  • Plugin page: redux-framework
  • Plugin version: 4.4.9
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 24, 2013
  • Latest release: Oct 26, 2023
  • Number of updates: 421
  • Update frequency: every 8.7 days
  • Top authors: dovyp (88.36%)KProvance (8.08%)ghost1227 (3.8%)

Code review

54 tests

User reviews

262 reviews

Install metrics

1,000,000+ active /23,066,252 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.57MB] [CPU: ▲0.47ms] Passed 4 tests

A check of server-side resources used by Redux Framework
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5639.38 ▲5.10
Dashboard /wp-admin3.88 ▲0.5851.02 ▲2.37
Posts /wp-admin/edit.php3.93 ▲0.5747.17 ▼1.96
Add New Post /wp-admin/post-new.php6.46 ▲0.5786.28 ▼1.23
Media Library /wp-admin/upload.php3.80 ▲0.5739.12 ▲2.69
Redux /wp-admin/options-general.php?page=redux-framework3.7545.81

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 971 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Redux Framework
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9614.20 ▼0.531.65 ▲0.0838.62 ▼1.63
Dashboard /wp-admin2,245 ▲685.57 ▼0.0382.49 ▼2.4289.16 ▲48.64
Posts /wp-admin/edit.php2,180 ▲772.02 ▼0.0134.76 ▼4.2432.54 ▼5.43
Add New Post /wp-admin/post-new.php1,543 ▲1723.24 ▼0.19650.84 ▼5.7786.78 ▲29.12
Media Library /wp-admin/upload.php1,406 ▲124.16 ▼0.0394.33 ▼2.9543.28 ▲1.53
Redux /wp-admin/options-general.php?page=redux-framework9783.3272.8965.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/ace_editor/field_ace_editor.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/select/field_select.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/core/dashboard.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/date/field_date.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/spinner/field_spinner.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/info/field_info.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/raw/field_raw.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/multi_text/field_multi_text.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/password/field_password.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/redux-framework/redux-core/inc/fields/border/field_border.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
10 plugin tags: admin interface, options, metaboxes, options framework, admin...

redux-framework/redux-framework.php Passed 13 tests

"Redux Framework" version 4.4.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Build better sites in WordPress fast!

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
Good job! No executable or dangerous file extensions detected83,086 lines of code in 642 files:
LanguageFilesBlank linesComment linesLines of code
PHP2807,65613,64132,921
JavaScript1446,1643,37925,656
Sass991,8968012,813
CSS1116,73331410,683
SVG600946
HTML17060
XML1007

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
It is recommended to fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity38.91
▷ Minimum class complexity1.00
▷ Maximum class complexity322.00
Average method complexity6.18
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes147
▷ Abstract classes32.04%
▷ Concrete classes14497.96%
▷ Final classes00.00%
Methods1,079
▷ Static methods30027.80%
▷ Public methods84177.94%
▷ Protected methods13912.88%
▷ Private methods999.18%
Functions29
▷ Named functions2586.21%
▷ Anonymous functions413.79%
Constants95
▷ Global constants22.11%
▷ Class constants9397.89%
▷ Public constants93100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
59 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_f6cf3b_256x240.png8.68KB4.11KB▼ 52.68%
redux-core/assets/img/raw/3-col-portfolio.png1.00KB0.15KB▼ 85.27%
redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
redux-core/assets/img/raw/3cr.png2.98KB0.34KB▼ 88.66%
redux-core/assets/img/raw/2-col-portfolio.png1.02KB0.15KB▼ 85.07%