94% footer-text

Code Review | Footer Text

WordPress plugin Footer Text scored 94% from 54 tests.

About plugin

  • Plugin page: footer-text
  • Plugin version: 2.0.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 5.8.1
  • First release: Apr 2, 2013
  • Latest release: Nov 30, 2020
  • Number of updates: 19
  • Update frequency: every 147.4 days
  • Top authors: bungeshea (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

6,000+ active / 105,529 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Footer Text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0329.98 ▲5.53
Dashboard /wp-admin3.10 ▲0.0336.50 ▼12.94
Posts /wp-admin/edit.php3.15 ▲0.0437.11 ▲3.24
Add New Post /wp-admin/post-new.php5.46 ▲0.0274.86 ▼589.39
Media Library /wp-admin/upload.php3.05 ▲0.0425.94 ▼0.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Footer Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7015.73 ▲0.088.49 ▲3.5275.64 ▼1.63
Dashboard /wp-admin2,935 ▲396.15 ▼0.03115.67 ▼15.91169.57 ▼2.38
Posts /wp-admin/edit.php2,742 ▲23.22 ▼0.1461.54 ▲0.43134.47 ▼7.09
Add New Post /wp-admin/post-new.php3,748 ▲1318.71 ▼0.04420.34 ▼25.11158.39 ▼2.35
Media Library /wp-admin/upload.php1,757 ▲55.47 ▼0.08143.18 ▲2.39184.24 ▼2.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/footer-text/includes/admin.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/footer-text/includes/template-tags.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/footer-text/includes/admin.php:26

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Editing the footer text in the dashboard), #2 (Previewing the footer text on the Twenty Thirteen theme)
  • License uri: Invalid URI ("")
The official readme.txt is a good inspiration

footer-text/footer-text.php Passed 13 tests

The main PHP script in "Footer Text" version 2.0.3 is automatically included on every request by WordPress
65 characters long description:
Allow changing of the theme footer text easily from the dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected127 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP555190127

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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
2 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png52.33KB19.67KB▼ 62.41%
screenshot-1.png81.51KB29.60KB▼ 63.69%