69% debrandify

Code Review | Debrandify · Remove or Replace WordPress Branding

WordPress plugin Debrandify · Remove or Replace WordPress Branding scored69%from 54 tests.

About plugin

  • Plugin page: debrandify
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Sep 25, 2023
  • Latest release: Sep 25, 2023
  • Number of updates: 5
  • Update frequency: every 3.8 days
  • Top authors: morceaudebois (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /82 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.83ms] Passed 4 tests

Server-side resources used by Debrandify · Remove or Replace WordPress Branding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.30 ▼2.68
Dashboard /wp-admin3.48 ▲0.1748.14 ▲0.30
Posts /wp-admin/edit.php3.59 ▲0.2347.76 ▼6.48
Add New Post /wp-admin/post-new.php6.06 ▲0.17101.48 ▲7.97
Media Library /wp-admin/upload.php3.40 ▲0.1740.29 ▲1.56
Debrandify /wp-admin/options-general.php?page=debrandify3.3733.26

Server storage [IO: ▲0.68MB] [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: 17 new files
Database: no new tables, 32 new options
New WordPress options
dbrdify_elementor_overview
dbrdify_email_from
dbrdify_wordpress-tab-suffix
dbrdify_wp_embed
can_compress_scripts
db_upgraded
theysaidso_admin_options
dbrdify_dashboard_news
dbrdify_centerLogin
dbrdify_svg
...

Browser metrics Passed 4 tests

Checking browser requirements for Debrandify · Remove or Replace WordPress Branding
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▼0.071.71 ▲0.1844.50 ▲3.05
Dashboard /wp-admin2,198 ▲245.63 ▲0.0595.51 ▲1.5742.35 ▲1.67
Posts /wp-admin/edit.php2,106 ▲61.96 ▼0.0734.11 ▼8.9132.23 ▼6.15
Add New Post /wp-admin/post-new.php1,539 ▲1118.37 ▼4.76615.43 ▼80.2366.76 ▲13.30
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0198.21 ▼1.7141.83 ▼3.36
Debrandify /wp-admin/options-general.php?page=debrandify1,0902.0425.8945.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Compile error in wp-content/plugins/debrandify/src/php/functions.php+3
    Cannot redeclare dbrdify_getDefaultOptions() (previously declared in wp-content/plugins/debrandify/src/php/functions.php:7)
  • The plugin did not uninstall successfully, leaving 17 files (0.68MB) in the plugin directory
    • (new file) src/css/style.css
    • (new file) src/images/bin.svg
    • (new file) languages/debrandify-fr_FR.mo
    • (new file) src/images/bin.png
    • (new file) src/images/debrandify.png
    • (new file) debrandify.php
    • (new file) readme.txt
    • (new file) languages/dbrdify.pot
    • (new file) readme.md
    • (new file) languages/debrandify-fr_FR.po
    • ...
  • This plugin does not fully uninstall, leaving 33 options in the database
    • dbrdify_installDate
    • dbrdify_email_username
    • dbrdify_usedNotice
    • recovery_mode_email_last_sent
    • dbrdify_svg
    • widget_theysaidso_widget
    • dbrdify_thank_you_string
    • dbrdify_wp_embed
    • dbrdify_dashboard_news
    • dbrdify_smileys
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please a description for screenshot #0 in debrandify/assets to your readme.txt
You can take inspiration from this readme.txt

debrandify/debrandify.php 85% from 13 tests

The entry point to "Debrandify · Remove or Replace WordPress Branding" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,125 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP515562644
PO File17083174
CSS15185
Sass116185
SVG10061
Markdown122044
JavaScript19032

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.50
▷ Minimum class complexity2.00
▷ Maximum class complexity29.00
Average method complexity7.25
▷ Minimum method complexity3.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions58
▷ Named functions1831.03%
▷ Anonymous functions4068.97%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.59MB with 0.38MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/images/bin.png168.26KB75.14KB▼ 55.34%
src/images/debrandify.png36.89KB13.86KB▼ 62.44%
src/images/screenshot.png401.78KB110.06KB▼ 72.61%