84% ltk-remove-branding

Code Review | LTK Remove Branding

WordPress plugin LTK Remove Branding scored84%from 54 tests.

About plugin

  • Plugin page: ltk-remove-branding
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Feb 29, 2016
  • Latest release: Jul 1, 2020
  • Number of updates: 13
  • Update frequency: every 207.8 days
  • Top authors: oMega_2093 (92.31%)josejfernandez (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,877 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.95ms] Passed 4 tests

Server-side resources used by LTK Remove Branding
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.13 ▼0.41
Dashboard /wp-admin3.31 ▲0.0144.69 ▼9.96
Posts /wp-admin/edit.php3.37 ▲0.0247.26 ▼7.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.75 ▼2.06
Media Library /wp-admin/upload.php3.24 ▲0.0237.10 ▲3.13

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by LTK Remove Branding
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,262 ▼52414.01 ▼0.652.01 ▼0.0345.68 ▲3.29
Dashboard /wp-admin1,694 ▼4875.42 ▼0.3081.59 ▼20.9326.24 ▼18.04
Posts /wp-admin/edit.php2,035 ▼652.02 ▲0.0435.05 ▼6.2432.44 ▼4.07
Add New Post /wp-admin/post-new.php1,495 ▼3118.34 ▼4.84608.83 ▼1.6072.17 ▲15.99
Media Library /wp-admin/upload.php1,396 ▼44.18 ▼0.0198.77 ▼12.7940.81 ▼3.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ltk-remove-branding/ltk-remove-branding.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: customization, branding

ltk-remove-branding/ltk-remove-branding.php Passed 13 tests

The main PHP file in "LTK Remove Branding" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
68 characters long description:
Remove WordPress links and logos from your website with this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected48 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1204848

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin