10% simple-footnotes-editor-button

Code Review | Simple Footnotes Editor Button

WordPress plugin Simple Footnotes Editor Button scored10%from 54 tests.

About plugin

  • Plugin page: simple-footnotes-...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Jul 15, 2013
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: acusti (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,765 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/simple-footnotes-editor-button/simple-footnotes-editor-button.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; simple_footnotes_editor_button has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼54.02ms] Passed 4 tests

An overview of server-side resources used by Simple Footnotes Editor Button
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.70 ▼38.01
Dashboard /wp-admin2.09 ▼1.266.65 ▼52.98
Posts /wp-admin/edit.php2.09 ▼1.275.81 ▼39.75
Add New Post /wp-admin/post-new.php2.09 ▼3.805.88 ▼85.34
Media Library /wp-admin/upload.php2.09 ▼1.146.28 ▼27.99

Server storage [IO: ▲0.01MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Footnotes Editor Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.60 ▼0.961.89 ▼0.3642.09 ▼11.14
Dashboard /wp-admin2,209 ▲244.83 ▼1.05110.54 ▲8.1741.54 ▼1.69
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0335.78 ▲1.4631.52 ▼6.03
Add New Post /wp-admin/post-new.php1,514 ▼3017.46 ▼0.94672.52 ▼5.7354.01 ▲3.74
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0494.06 ▼7.1842.98 ▼1.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/simple-footnotes-editor-button/simple-footnotes-editor-button.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; simple_footnotes_editor_button has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-footnotes-editor-button/simple-footnotes-editor-button.php:23

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: tinymce, toolbar, button, wysiwig, endnotes...

simple-footnotes-editor-button/simple-footnotes-editor-button.php 85% from 13 tests

"Simple Footnotes Editor Button" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

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
Everything looks great! No dangerous files found in this plugin112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1125192
PO File14820

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
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
footnote-icon.png1.84KB1.06KB▼ 42.38%