78% footer-generator

Code Review | Footer Generator

WordPress plugin Footer Generator scored78%from 54 tests.

About plugin

  • Plugin page: footer-generator
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Aug 29, 2021
  • Latest release: Aug 29, 2021
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: aesrm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /353 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: ▼6.25ms] Passed 4 tests

Analyzing server-side resources used by Footer Generator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.77 ▼5.84
Dashboard /wp-admin3.35 ▲0.0144.66 ▼21.08
Posts /wp-admin/edit.php3.40 ▲0.0548.16 ▲1.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0795.81 ▲0.47
Media Library /wp-admin/upload.php3.27 ▲0.0538.13 ▲4.95

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Footer Generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.51 ▼0.871.66 ▼0.1541.79 ▼1.37
Dashboard /wp-admin2,241 ▲505.11 ▲0.24113.24 ▼1.8436.09 ▼8.85
Posts /wp-admin/edit.php2,127 ▲352.51 ▲0.4838.71 ▲0.2031.11 ▼3.41
Add New Post /wp-admin/post-new.php1,700 ▲18622.97 ▲5.38601.42 ▼91.1025.70 ▼27.15
Media Library /wp-admin/upload.php1,490 ▲1024.48 ▲0.30101.55 ▲3.9642.05 ▼3.62

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/footer-generator/public/partials/footer-generator-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/footer-generator/admin/partials/footer-generator-admin-display.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/footer-generator/admin/partials/footer-generator-final-display.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (N/A) image not found
Please take inspiration from this readme.txt

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

"Footer Generator" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
This is a Plugin that helps a user generate a footer for their website based on their chosen preferences.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin3,517 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript57204072,898
PHP13184587516
CSS41314103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected