78% redux-converter

Code Review | Redux Converter

WordPress plugin Redux Converter scored78%from 54 tests.

About plugin

  • Plugin page: redux-converter
  • Plugin version: 1.1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.0
  • WordPress version: 6.3.1
  • First release: Dec 22, 2013
  • Latest release: Aug 14, 2014
  • Number of updates: 16
  • Update frequency: every 14.7 days
  • Top authors: dovyp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼6.03ms] Passed 4 tests

A check of server-side resources used by Redux Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.64 ▼7.55
Dashboard /wp-admin3.57 ▲0.2251.57 ▼8.47
Posts /wp-admin/edit.php3.68 ▲0.3348.88 ▲3.17
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.34 ▼8.67
Media Library /wp-admin/upload.php3.49 ▲0.2635.89 ▲0.58
Install Plugins /wp-admin/themes.php?page=install-redux-framework3.4433.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Redux Converter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.31 ▼0.061.58 ▼0.3640.59 ▼1.39
Dashboard /wp-admin2,228 ▲485.64 ▲0.1283.57 ▼5.1842.02 ▲2.02
Posts /wp-admin/edit.php2,139 ▲572.08 ▲0.0939.39 ▲2.9439.05 ▲2.14
Add New Post /wp-admin/post-new.php1,552 ▲2423.17 ▼0.15663.24 ▼21.2952.92 ▼10.62
Media Library /wp-admin/upload.php1,435 ▲354.24 ▲0.0498.35 ▼1.1744.78 ▼1.68
Install Plugins /wp-admin/themes.php?page=install-redux-framework9352.0525.9927.49

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=install-redux-framework
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=install-redux-framework
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
  • 20× 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 __() in wp-content/plugins/redux-converter/admin/includes/class-tgm-plugin-activation.php:155
    • > PHP Fatal error
      Uncaught Error: Class 'Mustache_Logger_AbstractLogger' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Logger/StreamLogger.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Exception/UnknownTemplateException.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/redux-converter/admin/views/admin.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Exception/UnknownFilterException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Exception/SyntaxException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Loader/InlineLoader.php:51
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Loader/FilesystemLoader.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Loader/CascadingLoader.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/redux-converter/admin/includes/Mustache/Exception/LogicException.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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (This demonstrates how you can take any theme using one of the accepted frameworks, and run it through Redux. Avada is a trademark of ThemeFusion. We only used this theme as it has a fair amount of exposure. We claim no rights to Avada. :P) image not found
You can look at the official readme.txt

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

The main PHP script in "Redux Converter" version 1.1.3.1 is automatically included on every request by WordPress
127 characters long description:
Try Redux Framework from the convenience of your own framework. Also export config files for your Redux panel and migrate data.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected4,506 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,1212,9604,458
Mustache114040
JavaScript1415
Markdown1103
CSS1010

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.68
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity4.37
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces5
Traits0
Classes36
▷ Abstract classes38.33%
▷ Concrete classes3391.67%
▷ Final classes00.00%
Methods242
▷ Static methods104.13%
▷ Public methods18978.10%
▷ Protected methods197.85%
▷ Private methods3414.05%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants53
▷ Global constants00.00%
▷ Class constants53100.00%
▷ Public constants53100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png158.91KB49.00KB▼ 69.16%
assets/banner-772x250.png11.50KB5.06KB▼ 56.00%
assets/banner-1544x500.png23.10KB9.63KB▼ 58.33%