78% wp-bigfoot

Code Review | WP-Bigfoot

WordPress plugin WP-Bigfoot scored78%from 54 tests.

About plugin

  • Plugin page: wp-bigfoot
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2013
  • Latest release: Jan 18, 2023
  • Number of updates: 20
  • Update frequency: every 165.8 days
  • Top authors: martinezadam (80%)freekrai (25%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /4,198 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼0.84ms] Passed 4 tests

A check of server-side resources used by WP-Bigfoot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.83 ▼1.56
Dashboard /wp-admin3.39 ▲0.0868.75 ▲19.62
Posts /wp-admin/edit.php3.50 ▲0.1448.23 ▲0.50
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.70 ▼6.52
Media Library /wp-admin/upload.php3.31 ▲0.0836.06 ▲4.22
Footnotes /wp-admin/edit.php?page=wp-bigfoot/admin/class-wp-bigfoot-admin.php3.2829.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
wpbf-options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Bigfoot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.76 ▼0.627.67 ▲5.5542.66 ▼3.17
Dashboard /wp-admin2,231 ▲435.11 ▼0.77111.01 ▼1.3640.53 ▼3.96
Posts /wp-admin/edit.php2,098 ▲92.32 ▲0.3241.61 ▲3.5137.25 ▲3.42
Add New Post /wp-admin/post-new.php1,538 ▲1823.36 ▲0.11585.57 ▼110.0527.70 ▼26.68
Media Library /wp-admin/upload.php1,414 ▲294.40 ▲0.2490.88 ▼26.0339.94 ▼8.66
Footnotes /wp-admin/edit.php?page=wp-bigfoot/admin/class-wp-bigfoot-admin.php9412.3744.0628.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • wpbf-options
    • db_upgraded
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-bigfoot/public/partials/wp-bigfoot-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-bigfoot/admin/partials/wp-bigfoot-display-custom-css.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot1.png), #2 (screenshot2.png)
The official readme.txt is a good inspiration

wp-bigfoot/wp-bigfoot.php Passed 13 tests

This is the main PHP file of "WP-Bigfoot" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Easier footnotes for your site, and jQuery Bigfoot for cooler effects

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
There were no executable files found in this plugin2,658 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
Sass3440661890
CSS5248792
JavaScript5755649
PHP11154487312
Markdown110015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
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
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot2.png59.93KB27.33KB▼ 54.39%
screenshot1.png19.47KB6.67KB▼ 65.77%