90% footer-code

Code Review | Footer Code

WordPress plugin Footer Code scored90%from 54 tests.

About plugin

  • Plugin page: footer-code
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 18, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 7
  • Update frequency: every 330.4 days
  • Top authors: GZep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,041 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.01MB] [CPU: ▼8.67ms] Passed 4 tests

A check of server-side resources used by Footer Code
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.92 ▼7.72
Dashboard /wp-admin3.32 ▲0.0148.38 ▼7.57
Posts /wp-admin/edit.php3.37 ▲0.0149.30 ▼4.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.46 ▼10.55
Media Library /wp-admin/upload.php3.24 ▲0.0130.58 ▼8.85
Footer Code /wp-admin/options-general.php?page=footer-code3.2132.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Footer Code
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.07 ▼0.301.76 ▲0.0243.94 ▼1.35
Dashboard /wp-admin2,193 ▲135.63 ▼0.0087.23 ▼11.5540.88 ▼3.91
Posts /wp-admin/edit.php2,101 ▲12.03 ▲0.0038.94 ▲2.1333.76 ▼4.91
Add New Post /wp-admin/post-new.php1,531 ▲523.27 ▲0.08678.41 ▼7.3262.30 ▲0.75
Media Library /wp-admin/upload.php1,407 ▲44.27 ▲0.18102.60 ▼11.4343.37 ▼5.07
Footer Code /wp-admin/options-general.php?page=footer-code7792.0323.2725.07

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === footer-code === )
Please take inspiration from this readme.txt

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

The entry point to "Footer Code" version 1.3 is a PHP file that has certain tags in its header comment area
72 characters long description:
Simplest plugin that allow to inject any code into footer of a web page.

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
There were no executable files found in this plugin77 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP316858
PO File12219

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin