84% modern-footnotes

Code Review | Modern Footnotes

WordPress plugin Modern Footnotes scored84%from 54 tests.

About plugin

  • Plugin page: modern-footnotes
  • Plugin version: 1.4.17
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2017
  • Latest release: Oct 18, 2023
  • Number of updates: 60
  • Update frequency: every 39.7 days
  • Top authors: prismtechstudios (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

6,000+ active /76,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.86ms] Passed 4 tests

An overview of server-side resources used by Modern Footnotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.97 ▼4.65
Dashboard /wp-admin3.34 ▲0.0445.45 ▼3.21
Posts /wp-admin/edit.php3.38 ▲0.0349.08 ▲8.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.27 ▼19.74
Media Library /wp-admin/upload.php3.25 ▲0.0340.92 ▲8.87
Modern Footnotes /wp-admin/options-general.php?page=modern-footnotes/modern-footnotes.php3.2232.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
modern_footnotes_settings
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
modern_footnotes_include_footnote_list_at_end_of_rss_content_default_value_has_been_set
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Modern Footnotes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.35 ▲0.071.69 ▼0.0142.71 ▼2.36
Dashboard /wp-admin2,201 ▲215.69 ▲0.0584.60 ▼4.5737.62 ▼3.81
Posts /wp-admin/edit.php2,109 ▲92.04 ▲0.0441.03 ▲2.2736.92 ▼2.19
Add New Post /wp-admin/post-new.php1,692 ▲16421.86 ▼0.86660.38 ▲30.9753.21 ▲1.73
Media Library /wp-admin/upload.php1,406 ▲34.36 ▲0.2093.36 ▼0.8143.78 ▼0.55
Modern Footnotes /wp-admin/options-general.php?page=modern-footnotes/modern-footnotes.php9212.0021.8630.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • modern_footnotes_settings
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • modern_footnotes_include_footnote_list_at_end_of_rss_content_default_value_has_been_set
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/modern-footnotes/modern-footnotes.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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: Please add an image for screenshot #4 (http://prismtechstudios.com/modern-footnotes/modern-footnotes-4.png)
Please take inspiration from this readme.txt

modern-footnotes/modern-footnotes.php 92% from 13 tests

The main file in "Modern Footnotes" v. 1.4.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin902 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP111964591
JavaScript625101226
CSS5113285

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions3296.97%
▷ Anonymous functions13.03%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mce-button.png0.21KB0.13KB▼ 39.55%