Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.54MB] [CPU: ▼1.90ms] Passed 4 tests
Analyzing server-side resources used by WP Total Branding - Complete branding solution for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.69 ▼0.57 |
Dashboard /wp-admin | 3.98 ▲0.63 | 46.85 ▼13.97 |
Posts /wp-admin/edit.php | 4.09 ▲0.73 | 59.66 ▲11.11 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.77 | 93.96 ▼4.16 |
Media Library /wp-admin/upload.php | 3.98 ▲0.75 | 48.55 ▲12.74 |
Server storage [IO: ▲6.43MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 783 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wptb_options |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
wptb_options-transients |
Browser metrics Passed 4 tests
Checking browser requirements for WP Total Branding - Complete branding solution for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,052 ▼695 | 14.21 ▼0.13 | 1.55 ▼0.26 | 35.02 ▼8.82 |
Dashboard /wp-admin | 1,462 ▼719 | 5.25 ▼0.48 | 74.19 ▼30.08 | 38.69 ▼5.85 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.02 ▲0.05 | 41.05 ▲2.20 | 37.28 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.25 ▲0.14 | 619.49 ▼45.46 | 54.11 ▼0.17 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.22 ▲0.05 | 96.36 ▼1.79 | 41.94 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- wptb_options-transients
- can_compress_scripts
- widget_recent-comments
- wptb_options
- widget_recent-posts
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 no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/textarea/field_textarea.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/select_image/field_select_image.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/core/dashboard.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/color_gradient/field_color_gradient.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-total-branding/includes/libs/redux-core/templates/panel/menu-container.tpl.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/checkbox/field_checkbox.php:8
- > PHP Fatal error
Uncaught Error: Class 'Redux' not found in wp-content/plugins/wp-total-branding/includes/options/custom-css.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/dimensions/field_dimensions.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/templates/panel/header-stickybar.tpl.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-total-branding/includes/libs/redux-core/inc/fields/raw/field_raw.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: customize, custom-logo, branding, admin menu, while-label
wp-total-branding/wp-total-branding.php Passed 13 tests
The entry point to "WP Total Branding - Complete branding solution for WordPress" version 1.2 is a PHP file that has certain tags in its header comment area
52 characters long description:
Simple and powerful branding solution for WordPress.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected57,055 lines of code in 513 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 228 | 7,329 | 12,672 | 28,833 |
JavaScript | 115 | 2,800 | 910 | 11,276 |
CSS | 98 | 5,764 | 239 | 9,695 |
Sass | 66 | 1,023 | 44 | 6,305 |
SVG | 6 | 0 | 0 | 946 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 38.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 322.00 |
Average method complexity | 6.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 146 | |
▷ Abstract classes | 3 | 2.05% |
▷ Concrete classes | 143 | 97.95% |
▷ Final classes | 0 | 0.00% |
Methods | 1,060 | |
▷ Static methods | 289 | 27.26% |
▷ Public methods | 822 | 77.55% |
▷ Protected methods | 140 | 13.21% |
▷ Private methods | 98 | 9.25% |
Functions | 40 | |
▷ Named functions | 36 | 90.00% |
▷ Anonymous functions | 4 | 10.00% |
Constants | 101 | |
▷ Global constants | 7 | 6.93% |
▷ Class constants | 94 | 93.07% |
▷ Public constants | 94 | 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
53 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png | 4.10KB | 4.11KB | 0.00% |
includes/libs/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
includes/libs/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |