84% icon-footnote

Code Review | Icon Footnote

WordPress plugin Icon Footnote scored84%from 54 tests.

About plugin

  • Plugin page: icon-footnote
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Aug 3, 2022
  • Latest release: Sep 8, 2022
  • Number of updates: 4
  • Update frequency: every 9.5 days
  • Top authors: opendevconsulting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.04ms] Passed 4 tests

This is a short check of server-side resources used by Icon Footnote
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.59 ▼2.40
Dashboard /wp-admin3.32 ▼0.0354.01 ▼8.76
Posts /wp-admin/edit.php3.37 ▲0.0152.16 ▲2.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.84 ▼19.19
Media Library /wp-admin/upload.php3.24 ▲0.0138.80 ▲3.97

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Icon Footnote: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.34 ▼0.041.90 ▲0.3040.64 ▲3.16
Dashboard /wp-admin2,192 ▲115.52 ▼0.1790.70 ▼6.8338.73 ▼0.31
Posts /wp-admin/edit.php2,100 ▼02.12 ▲0.1436.92 ▼1.5836.29 ▼1.21
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.67 ▲4.35870.18 ▲192.1454.63 ▲0.20
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0398.27 ▼12.0143.07 ▼6.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/icon-footnote/icon-footnote.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: formatting, block, bibliography, footnotes

icon-footnote/icon-footnote.php Passed 13 tests

The primary PHP file in "Icon Footnote" version 0.1.3 is used by WordPress to initiate all plugin functionality
64 characters long description:
Gutenberg block to add beautiful footnotes using material icons.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin85 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JSON10052
Markdown118024
PHP21216
CSS2002
JavaScript1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin