84% inline-footnotes

Code Review | Inline Footnotes

WordPress plugin Inline Footnotes scored 84% from 54 tests.

About plugin

  • Plugin page: inline-footnotes
  • Plugin version: 2.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: Dec 15, 2018
  • Number of updates: 30
  • Update frequency: every 37.9 days
  • Top authors: gavinr (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active / 9,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.09ms] Passed 4 tests

An overview of server-side resources used by Inline Footnotes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.80 ▼0.33
Dashboard /wp-admin3.34 ▲0.0456.12 ▲9.12
Posts /wp-admin/edit.php3.39 ▲0.0447.45 ▲2.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0693.85 ▲0.63
Media Library /wp-admin/upload.php3.26 ▲0.0435.83 ▲1.35
Inline Footnotes /wp-admin/options-general.php?page=inline-footnotes3.2633.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Inline Footnotes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15713.72 ▼0.965.95 ▲4.0637.75 ▼7.09
Dashboard /wp-admin2,231 ▲405.24 ▲0.30100.68 ▼4.5438.26 ▼6.46
Posts /wp-admin/edit.php2,095 ▲62.32 ▲0.3135.00 ▼1.5030.59 ▼2.20
Add New Post /wp-admin/post-new.php1,538 ▲2423.06 ▲5.62673.98 ▼13.2335.40 ▼20.38
Media Library /wp-admin/upload.php1,417 ▲294.25 ▲0.0788.51 ▼32.2840.52 ▼5.75
Inline Footnotes /wp-admin/options-general.php?page=inline-footnotes1,2482.6457.8326.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/inline-footnotes/admin/partials/inline-footnotes-admin-display.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inline-footnotes/public/partials/inline-footnotes-public-display.php:21

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: footnotes, shortcode

inline-footnotes/inline-footnotes.php Passed 13 tests

The entry point to "Inline Footnotes" version 2.3.0 is a PHP file that has certain tags in its header comment area
56 characters long description:
Enables adding footnotes via shortcodes in your content.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin418 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12149567345
CSS30543
JavaScript373030

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods3286.49%
▷ Protected methods00.00%
▷ Private methods513.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected