84% remove-powered-by-wp

Code Review | Remove "Powered by WordPress"

WordPress plugin Remove "Powered by WordPress" scored84%from 54 tests.

About plugin

  • Plugin page: remove-powered-by-wp
  • Plugin version: 1.5.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 68
  • Update frequency: every 35.5 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

20,000+ active /374,394 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.34ms] Passed 4 tests

Analyzing server-side resources used by Remove "Powered by WordPress"
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.58 ▲0.61
Dashboard /wp-admin3.32 ▼0.0345.92 ▼15.09
Posts /wp-admin/edit.php3.43 ▲0.0844.15 ▼4.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.45 ▼3.01
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▼2.38

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove "Powered by WordPress"
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6014.67 ▼0.042.03 ▲0.3437.96 ▼6.33
Dashboard /wp-admin2,195 ▲155.55 ▼0.1298.18 ▼0.4042.94 ▼3.50
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0438.72 ▼1.9435.48 ▼1.65
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.01672.26 ▼7.2171.83 ▲7.64
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0197.04 ▼0.8341.62 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/remove-powered-by-wp/includes/class-rpbw-common.php:507

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: customize, modify, twentyseventeen, twentytwenty, twentytwentyone

remove-powered-by-wp/remove-powered-by-wp.php Passed 13 tests

Analyzing the main PHP file in "Remove "Powered by WordPress"" version 1.5.8
86 characters long description:
Removes the WordPress credit on all default WordPress themes and inserts a widget area

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,006 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP251821994
JavaScript15312

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity54.67
▷ Minimum class complexity6.00
▷ Maximum class complexity85.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods2663.41%
▷ Public methods41100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin