83% c4d-plugin-manager

Code Review | C4D Plugin Manager

WordPress plugin C4D Plugin Manager scored83%from 54 tests.

About plugin

  • Plugin page: c4d-plugin-manager
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 24, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 21
  • Update frequency: every 111.4 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /5,273 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲2.72MB] [CPU: ▲22.14ms] Passed 4 tests

An overview of server-side resources used by C4D Plugin Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /6.21 ▲2.7568.79 ▲23.98
Dashboard /wp-admin6.01 ▲2.7073.11 ▲22.05
Posts /wp-admin/edit.php6.12 ▲2.7671.46 ▲17.83
Add New Post /wp-admin/post-new.php8.61 ▲2.73122.75 ▲24.70
Media Library /wp-admin/upload.php5.93 ▲2.7066.55 ▲31.16
Redux /wp-admin/options-general.php?page=redux-framework5.9457.51
General /wp-admin/admin.php?page=c4d-plugin-manager&tab=16.1366.59
Import / Export /wp-admin/admin.php?page=c4d-plugin-manager&tab=26.1359.58

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 956 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
c4d_plugin_manager-transients
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
c4d_plugin_manager
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for C4D Plugin Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.21 ▼0.071.71 ▲0.0839.68 ▼6.03
Dashboard /wp-admin2,221 ▲475.62 ▲0.0489.92 ▲2.1341.18 ▲0.74
Posts /wp-admin/edit.php2,134 ▲312.00 ▲0.0440.96 ▲1.5136.45 ▼3.81
Add New Post /wp-admin/post-new.php1,559 ▲2223.03 ▲4.81609.92 ▼44.3351.71 ▼20.09
Media Library /wp-admin/upload.php1,437 ▲404.19 ▲0.0499.63 ▼3.9342.67 ▼5.94
Redux /wp-admin/options-general.php?page=redux-framework1,0373.3278.3794.16
General /wp-admin/admin.php?page=c4d-plugin-manager&tab=11,2652.7056.48220.81
Import / Export /wp-admin/admin.php?page=c4d-plugin-manager&tab=21,2662.7158.1070.52

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • c4d_plugin_manager-transients
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • c4d_plugin_manager
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 51× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/templates/panel/header-stickybar.tpl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/inc/fields/background/field_background.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/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/c4d-plugin-manager/redux-framework/redux-core/core/panel.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/c4d-plugin-manager/redux-framework/ReduxCore/inc/fields/typography/field_typography.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/inc/fields/media/field_media.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/inc/fields/slider/field_slider.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/inc/fields/divide/field_divide.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/templates/panel/header.tpl.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/c4d-plugin-manager/redux-framework/redux-core/core/required.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
You can look at the official readme.txt

c4d-plugin-manager/c4d-plugin-manager.php 92% from 13 tests

"C4D Plugin Manager" version 3.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected83,932 lines of code in 643 files:
LanguageFilesBlank linesComment linesLines of code
PHP2817,57913,67532,766
JavaScript1426,1503,37125,699
Sass991,8727912,807
CSS1126,69932211,435
SVG7001,158
HTML17060
XML1007

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 110)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity36.57
▷ Minimum class complexity1.00
▷ Maximum class complexity322.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity110.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes150
▷ Abstract classes42.67%
▷ Concrete classes14697.33%
▷ Final classes00.00%
Methods1,091
▷ Static methods29326.86%
▷ Public methods85578.37%
▷ Protected methods14012.83%
▷ Private methods968.80%
Functions41
▷ Named functions3687.80%
▷ Anonymous functions512.20%
Constants108
▷ Global constants54.63%
▷ Class constants10395.37%
▷ Public constants103100.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 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
redux-framework/redux-core/assets/img/2-col-portfolio.png0.15KB0.15KB0.00%
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
redux-framework/sample/presets/preset1.png18.04KB7.56KB▼ 58.12%
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%