83% customize-widgets-plus

Code Review | Customize Widgets Plus

WordPress plugin Customize Widgets Plus scored83%from 54 tests.

About plugin

  • Plugin page: customize-widgets...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Jun 3, 2015
  • Number of updates: 3
  • Update frequency: every 7.7 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,106 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼1.27ms] Passed 4 tests

Analyzing server-side resources used by Customize Widgets Plus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3545.51 ▲1.40
Dashboard /wp-admin3.67 ▲0.3754.62 ▲2.74
Posts /wp-admin/edit.php3.72 ▲0.3649.41 ▲3.24
Add New Post /wp-admin/post-new.php6.19 ▲0.3088.07 ▼9.81
Media Library /wp-admin/upload.php3.53 ▲0.3038.85 ▲0.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Customize Widgets Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.321.80 ▲0.1345.09 ▲0.19
Dashboard /wp-admin2,195 ▲185.63 ▲0.0489.95 ▲3.1839.99 ▼0.38
Posts /wp-admin/edit.php2,097 ▼02.03 ▲0.0035.03 ▲0.0733.46 ▼5.06
Add New Post /wp-admin/post-new.php1,526 ▼223.32 ▲0.26639.94 ▼40.8146.89 ▼7.05
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0198.66 ▼11.1046.28 ▼0.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • enabled_widget_posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
  • 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Exception: WP_TESTS_DIR env var is empty; expected to point to {develop.svn.wordpress.org}/tests/phpunit/ in wp-content/plugins/customize-widgets-plus/tests/test-core-customize-widgets-with-widget-posts.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Plugin_Base' not found in wp-content/plugins/customize-widgets-plus/php/class-plugin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomizeWidgetsPlus\\add_action() in wp-content/plugins/customize-widgets-plus/php/class-plugin.php:62
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-efficient-multidimensional-setting-sanitizing.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-posts.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customize-widgets-plus/php/class-wp-customize-widget-setting.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizeWidgetsPlus\\Base_Test_Case' not found in wp-content/plugins/customize-widgets-plus/tests/test-class-widget-number-incrementing.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/customize-widgets-plus/php/class-widget-posts-cli-command.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

customize-widgets-plus/customize-widgets-plus.php 92% from 13 tests

The primary PHP file in "Customize Widgets Plus" version 0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,357 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.09
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
▷ Static methods52.66%
▷ Public methods18296.81%
▷ Protected methods63.19%
▷ Private methods00.00%
▷ Named functions212.50%
▷ Anonymous functions1487.50%
▷ Global constants320.00%
▷ Class constants1280.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin