84% wp-total-branding

Code Review | WP Total Branding - Complete branding solution for WordPress

WordPress plugin WP Total Branding - Complete branding solution for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: wp-total-branding
  • Plugin version: 1.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Oct 2, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 17
  • Update frequency: every 131.1 days
  • Top authors: m_uysl (94.12%)handyplugins (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,178 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.69 ▼0.57
Dashboard /wp-admin3.98 ▲0.6346.85 ▼13.97
Posts /wp-admin/edit.php4.09 ▲0.7359.66 ▲11.11
Add New Post /wp-admin/post-new.php6.65 ▲0.7793.96 ▼4.16
Media Library /wp-admin/upload.php3.98 ▲0.7548.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,052 ▼69514.21 ▼0.131.55 ▼0.2635.02 ▼8.82
Dashboard /wp-admin1,462 ▼7195.25 ▼0.4874.19 ▼30.0838.69 ▼5.85
Posts /wp-admin/edit.php2,124 ▲242.02 ▲0.0541.05 ▲2.2037.28 ▲2.10
Add New Post /wp-admin/post-new.php1,547 ▲2123.25 ▲0.14619.49 ▼45.4654.11 ▼0.17
Media Library /wp-admin/upload.php1,424 ▲214.22 ▲0.0596.36 ▼1.7941.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP2287,32912,67228,833
JavaScript1152,80091011,276
CSS985,7642399,695
Sass661,023446,305
SVG600946

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 code0.59
Average class complexity38.82
▷ Minimum class complexity1.00
▷ Maximum class complexity322.00
Average method complexity6.23
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes146
▷ Abstract classes32.05%
▷ Concrete classes14397.95%
▷ Final classes00.00%
Methods1,060
▷ Static methods28927.26%
▷ Public methods82277.55%
▷ Protected methods14013.21%
▷ Private methods989.25%
Functions40
▷ Named functions3690.00%
▷ Anonymous functions410.00%
Constants101
▷ Global constants76.93%
▷ Class constants9493.07%
▷ Public constants94100.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
FileSize - originalSize - compressedSavings
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png4.10KB4.11KB0.00%
includes/libs/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-icons_ffffff_256x240.png4.27KB4.11KB▼ 3.78%
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
includes/libs/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/libs/redux-core/assets/img/raw/jquery-ui-bootstrap/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%