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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.21 ▲2.75 | 68.79 ▲23.98 |
Dashboard /wp-admin | 6.01 ▲2.70 | 73.11 ▲22.05 |
Posts /wp-admin/edit.php | 6.12 ▲2.76 | 71.46 ▲17.83 |
Add New Post /wp-admin/post-new.php | 8.61 ▲2.73 | 122.75 ▲24.70 |
Media Library /wp-admin/upload.php | 5.93 ▲2.70 | 66.55 ▲31.16 |
Redux /wp-admin/options-general.php?page=redux-framework | 5.94 | 57.51 |
General /wp-admin/admin.php?page=c4d-plugin-manager&tab=1 | 6.13 | 66.59 |
Import / Export /wp-admin/admin.php?page=c4d-plugin-manager&tab=2 | 6.13 | 59.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.21 ▼0.07 | 1.71 ▲0.08 | 39.68 ▼6.03 |
Dashboard /wp-admin | 2,221 ▲47 | 5.62 ▲0.04 | 89.92 ▲2.13 | 41.18 ▲0.74 |
Posts /wp-admin/edit.php | 2,134 ▲31 | 2.00 ▲0.04 | 40.96 ▲1.51 | 36.45 ▼3.81 |
Add New Post /wp-admin/post-new.php | 1,559 ▲22 | 23.03 ▲4.81 | 609.92 ▼44.33 | 51.71 ▼20.09 |
Media Library /wp-admin/upload.php | 1,437 ▲40 | 4.19 ▲0.04 | 99.63 ▼3.93 | 42.67 ▼5.94 |
Redux /wp-admin/options-general.php?page=redux-framework | 1,037 | 3.32 | 78.37 | 94.16 |
General /wp-admin/admin.php?page=c4d-plugin-manager&tab=1 | 1,265 | 2.70 | 56.48 | 220.81 |
Import / Export /wp-admin/admin.php?page=c4d-plugin-manager&tab=2 | 1,266 | 2.71 | 58.10 | 70.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 281 | 7,579 | 13,675 | 32,766 |
JavaScript | 142 | 6,150 | 3,371 | 25,699 |
Sass | 99 | 1,872 | 79 | 12,807 |
CSS | 112 | 6,699 | 322 | 11,435 |
SVG | 7 | 0 | 0 | 1,158 |
HTML | 1 | 7 | 0 | 60 |
XML | 1 | 0 | 0 | 7 |
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 code | 0.57 |
Average class complexity | 36.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 150 | |
▷ Abstract classes | 4 | 2.67% |
▷ Concrete classes | 146 | 97.33% |
▷ Final classes | 0 | 0.00% |
Methods | 1,091 | |
▷ Static methods | 293 | 26.86% |
▷ Public methods | 855 | 78.37% |
▷ Protected methods | 140 | 12.83% |
▷ Private methods | 96 | 8.80% |
Functions | 41 | |
▷ Named functions | 36 | 87.80% |
▷ Anonymous functions | 5 | 12.20% |
Constants | 108 | |
▷ Global constants | 5 | 4.63% |
▷ Class constants | 103 | 95.37% |
▷ Public constants | 103 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
redux-framework/redux-core/assets/img/2-col-portfolio.png | 0.15KB | 0.15KB | 0.00% |
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
redux-framework/sample/presets/preset1.png | 18.04KB | 7.56KB | ▼ 58.12% |
redux-framework/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |