79% endnotes

Code Review | Endnotes

WordPress plugin Endnotes scored79%from 54 tests.

About plugin

  • Plugin page: endnotes
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2015
  • Latest release: May 2, 2016
  • Number of updates: 6
  • Update frequency: every 53.2 days
  • Top authors: heavyheavy (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,320 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.43ms] Passed 4 tests

Analyzing server-side resources used by Endnotes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.87 ▼2.66
Dashboard /wp-admin3.35 ▲0.0145.71 ▼16.41
Posts /wp-admin/edit.php3.40 ▲0.0548.74 ▼0.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.68 ▼16.03
Media Library /wp-admin/upload.php3.27 ▲0.0532.47 ▼2.61
Endnotes /wp-admin/options-general.php?page=endnotes-options3.2228.23

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Endnotes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.36 ▼1.021.73 ▼0.0042.01 ▼0.02
Dashboard /wp-admin2,207 ▲195.82 ▼0.09104.78 ▲3.8136.29 ▼7.91
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0341.30 ▼0.0337.01 ▲0.94
Add New Post /wp-admin/post-new.php1,536 ▲1723.21 ▼0.08668.28 ▼2.4665.50 ▲5.28
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0593.74 ▼9.7942.96 ▼0.81
Endnotes /wp-admin/options-general.php?page=endnotes-options8002.0627.6328.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=endnotes-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=endnotes-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/endnotes/includes/endnotes-options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/endnotes/endnotes.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/endnotes/includes/endnotes-output.php:2

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: notes, attribution, endnotes, reference notes, footnotes...

endnotes/endnotes.php Passed 13 tests

"Endnotes" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
A simple solution for adding footnotes to your WordPress posts or pages.

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
There were no executable files found in this plugin262 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3104211180
PO File1161854
JavaScript13028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin