84% easy-footnotes

Code Review | Easy Footnotes

WordPress plugin Easy Footnotes scored84%from 54 tests.

About plugin

  • Plugin page: easy-footnotes
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 20, 2014
  • Latest release: Sep 8, 2022
  • Number of updates: 54
  • Update frequency: every 52.2 days
  • Top authors: yingling017 (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

10,000+ active /101,839 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.05ms] Passed 4 tests

An overview of server-side resources used by Easy Footnotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.32 ▲9.80
Dashboard /wp-admin3.35 ▲0.0546.13 ▼0.61
Posts /wp-admin/edit.php3.40 ▲0.0545.61 ▼1.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0778.64 ▼25.08
Media Library /wp-admin/upload.php3.27 ▲0.0533.68 ▼0.78
Easy Footnotes /wp-admin/options-general.php?page=easy-footnotes-settings3.2530.72

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
easy_footnotes_options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Footnotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.36 ▼1.264.90 ▲3.2242.69 ▼0.92
Dashboard /wp-admin2,214 ▲266.01 ▲0.10102.45 ▲2.5444.09 ▲1.33
Posts /wp-admin/edit.php2,097 ▲52.04 ▼0.0134.93 ▼9.0635.59 ▼0.24
Add New Post /wp-admin/post-new.php1,522 ▲523.53 ▲5.90696.83 ▲88.3867.35 ▲13.46
Media Library /wp-admin/upload.php1,393 ▲54.21 ▲0.0293.35 ▼4.6040.77 ▼3.09
Easy Footnotes /wp-admin/options-general.php?page=easy-footnotes-settings8012.2024.6825.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • easy_footnotes_options
    • widget_recent-comments

Smoke tests 75% 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 50% 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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-footnotes/easy-footnotes.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-footnotes/easy-footnotes-admin.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Displaying a footnote on hover.), #2 (Several footnotes (feetnote?) at the bottom of the post.)
You can look at the official readme.txt

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

The main PHP script in "Easy Footnotes" version 1.1.6 is automatically included on every request by WordPress
59 characters long description:
Easily add footnotes to your posts with a simple shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,035 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript66025632,386
CSS413171476
PHP25983173

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin