84% remove-footer-credit

Code Review | Remove Footer Credit

WordPress plugin Remove Footer Credit scored84%from 54 tests.

About plugin

  • Plugin page: remove-footer-credit
  • Plugin version: 1.0.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Aug 27, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 42
  • Update frequency: every 60.4 days
  • Top authors: machothemes (35.71%)upwerd (28.57%)raldea89 (21.43%)giucu91 (19.05%)wpchill (4.76%)

Code review

54 tests

User reviews

83 reviews

Install metrics

90,000+ active /950,978 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.06ms] Passed 4 tests

Analyzing server-side resources used by Remove Footer Credit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.20 ▼5.96
Dashboard /wp-admin3.34 ▼0.0042.17 ▼18.60
Posts /wp-admin/edit.php3.39 ▲0.0443.89 ▼1.20
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.97 ▼10.46
Media Library /wp-admin/upload.php3.26 ▲0.0439.68 ▲6.58
Remove Footer Credit /wp-admin/tools.php?page=remove-footer-credit3.3142.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Remove Footer Credit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.14 ▼1.302.05 ▲0.3244.34 ▲0.76
Dashboard /wp-admin2,207 ▲195.80 ▲0.9099.75 ▼6.9037.80 ▼5.93
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0337.39 ▲3.1933.98 ▼1.93
Add New Post /wp-admin/post-new.php1,531 ▲318.59 ▼0.01659.44 ▲38.3063.49 ▲4.51
Media Library /wp-admin/upload.php1,392 ▲104.15 ▼0.0593.29 ▼5.4343.31 ▼0.09
Remove Footer Credit /wp-admin/tools.php?page=remove-footer-credit1,5726.80128.7173.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/remove-footer-credit/sections/plugins.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/remove-footer-credit/sections/settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/remove-footer-credit/sections/plugin-info.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: text, change, remove footer credit, replace, html...

remove-footer-credit/remove-footer-credit.php Passed 13 tests

This is the main PHP file of "Remove Footer Credit" version 1.0.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
A simple plugin to remove footer credits

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
Success! There were no dangerous files found in this plugin572 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP46562299
CSS1131122
PO File13639110
JavaScript114041

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.32
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/kb.png3.65KB1.70KB▼ 53.38%
assets/images/st.png46.16KB15.30KB▼ 66.85%
assets/images/checkemail.png14.26KB12.32KB▼ 13.59%
assets/images/handshake.png19.65KB8.25KB▼ 58.01%
assets/images/dm.png5.23KB2.54KB▼ 51.32%