84% brand-my-footer

Code Review | Brand my Footer

WordPress plugin Brand my Footer scored84%from 54 tests.

About plugin

  • Plugin page: brand-my-footer
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2019
  • Latest release: Nov 7, 2019
  • Number of updates: 7
  • Update frequency: every 12.9 days
  • Top authors: jakeatthrive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /713 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.01MB] [CPU: ▼12.16ms] Passed 4 tests

A check of server-side resources used by Brand my Footer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.66 ▼7.29
Dashboard /wp-admin3.31 ▼0.0446.63 ▼20.66
Posts /wp-admin/edit.php3.36 ▲0.0047.15 ▼1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.64 ▼16.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.50 ▼4.54

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Brand my Footer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.24 ▲0.042.18 ▲0.4577.45 ▲32.17
Dashboard /wp-admin2,198 ▲215.63 ▼0.0282.55 ▼14.4339.02 ▼3.27
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0134.31 ▼2.5435.24 ▼3.48
Add New Post /wp-admin/post-new.php1,526 ▼023.14 ▲0.05658.61 ▼18.2753.88 ▼1.18
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0299.15 ▼19.3144.86 ▼4.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brand-my-footer/brand-my-footer.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (This is a screenshot of a default branding example.)
You can look at the official readme.txt

brand-my-footer/brand-my-footer.php Passed 13 tests

This is the main PHP file of "Brand my Footer" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
This is a plugin that adds branding to footers via shortcode.

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 plugin74 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown119035
PHP16820
CSS14019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png2.82KB2.24KB▼ 20.75%