84% update-your-footer-wp

Code Review | Update Your Footer WP

WordPress plugin Update Your Footer WP scored84%from 54 tests.

About plugin

  • Plugin page: update-your-foote...
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Apr 22, 2022
  • Latest release: Nov 27, 2022
  • Number of updates: 3
  • Update frequency: every 73.0 days
  • Top authors: warengonzaga (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Update Your Footer WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.69 ▼2.03
Dashboard /wp-admin3.31 ▲0.0145.74 ▼8.16
Posts /wp-admin/edit.php3.36 ▲0.0048.33 ▼5.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.86 ▼7.51
Media Library /wp-admin/upload.php3.23 ▲0.0038.99 ▲4.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Update Your Footer WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.62 ▼0.701.79 ▼0.3540.29 ▼4.34
Dashboard /wp-admin2,206 ▲155.83 ▲0.96114.05 ▲6.4244.00 ▼0.31
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0340.39 ▲5.1034.37 ▼1.49
Add New Post /wp-admin/post-new.php1,547 ▲2823.00 ▼0.11673.97 ▲42.2165.50 ▲17.03
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.08119.60 ▲18.7147.37 ▲5.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/update-your-footer-wp/update-your-footer-wp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: simple, basic, year, shortcodes, update...

update-your-footer-wp/update-your-footer-wp.php Passed 13 tests

This is the main PHP file of "Update Your Footer WP" version 1.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
115 characters long description:
Simple and lightweight WordPress shortcode plugin to automagically update your footer year notice. No annoying ads!

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 detected117 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
Markdown4840107
PHP261810

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin