84% remove-wp-branding

Code Review | Remove WP Branding

WordPress plugin Remove WP Branding scored 84% from 54 tests.

About plugin

  • Plugin page: remove-wp-branding
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Jun 4, 2023
  • Number of updates: 23
  • Update frequency: every 129.8 days
  • Top authors: workshopmg (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

7,000+ active / 47,253 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.58ms] Passed 4 tests

An overview of server-side resources used by Remove WP Branding
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.24 ▼11.33
Dashboard /wp-admin3.31 ▲0.0141.15 ▼5.38
Posts /wp-admin/edit.php3.51 ▲0.1650.36 ▲7.27
Add New Post /wp-admin/post-new.php5.96 ▲0.0782.34 ▼15.34
Media Library /wp-admin/upload.php3.30 ▲0.0735.10 ▼2.25
Remove Branding /wp-admin/plugins.php?page=remove-wp-branding3.3035.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 19 new options
New WordPress options
rwp_remove_from_admin_menu
rwp_eliminate_logo
rwp_remove_comp_dashboards
rwp_login_logo_height
rwp_eliminate_help
rwp_lower_left_text
rwp_left_widget_title
rwp_left_widget_content
rwp_login_logo
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Remove WP Branding
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,097 ▼64914.13 ▼0.461.74 ▼0.0239.70 ▼2.58
Dashboard /wp-admin1,520 ▼6715.78 ▲0.87106.94 ▲3.8132.95 ▼12.61
Posts /wp-admin/edit.php2,207 ▲1183.32 ▲1.2954.39 ▲17.9431.46 ▼0.97
Add New Post /wp-admin/post-new.php1,511 ▼923.08 ▲0.05593.52 ▼85.4035.62 ▼26.64
Media Library /wp-admin/upload.php1,341 ▼474.13 ▼0.1076.81 ▼33.3137.65 ▼6.80
Remove Branding /wp-admin/plugins.php?page=remove-wp-branding1,1773.0542.2594.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/remove-wp-branding/remove-wp-branding.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
6 plugin tags: custom branding, remove branding, dashboard customization, add dashboard widget, change login logo...

remove-wp-branding/remove-wp-branding.php 92% from 13 tests

This is the main PHP file of "Remove WP Branding" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin305 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26885305

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin