74% esselinknu-settings

Code Review | Esselink.nu Settings

WordPress plugin Esselink.nu Settings scored74%from 54 tests.

About plugin

  • Plugin page: esselinknu-settings
  • Plugin version: 2.84
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2016
  • Latest release: Oct 10, 2023
  • Number of updates: 75
  • Update frequency: every 34.4 days
  • Top authors: esselinknu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,046 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼7.42ms] Passed 4 tests

Server-side resources used by Esselink.nu Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4346.22 ▲9.25
Dashboard /wp-admin3.67 ▲0.3251.19 ▼9.79
Posts /wp-admin/edit.php3.79 ▲0.4247.57 ▼6.24
Add New Post /wp-admin/post-new.php6.25 ▲0.3685.41 ▼16.72
Media Library /wp-admin/upload.php3.59 ▲0.3639.27 ▲3.07
Esselink.nu /wp-admin/options-general.php?page=esselink_nu_settings3.5435.78

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 42 new options
New tables
wp_esselink_settings_redirects
New WordPress options
esselink_nu_settings_change_login_logo
esselink_nu_settings_hsts_header
esselink_nu_settings_email_sendfromname
esselink_nu_settings_auto_update_themes
esselink_nu_settings_robotstxt_crawdelay
widget_theysaidso_widget
litespeed.conf.guest_optm
esselink_nu_settings_collect_404
esselink_nu_settings_enable_structured_data
esselink_nu_settings_send_emails
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Esselink.nu Settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,022 ▲25114.16 ▼0.431.10 ▼0.7933.80 ▼7.71
Dashboard /wp-admin2,442 ▲2685.63 ▲0.0278.13 ▼7.4365.05 ▲24.98
Posts /wp-admin/edit.php2,093 ▼101.93 ▼0.0826.81 ▼12.5834.86 ▲0.13
Add New Post /wp-admin/post-new.php1,529 ▼823.58 ▲5.05676.42 ▲53.2252.77 ▼21.76
Media Library /wp-admin/upload.php1,400 ▼34.23 ▼0.0093.49 ▼5.6941.63 ▼3.17
Esselink.nu /wp-admin/options-general.php?page=esselink_nu_settings1,9301.9822.5828.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_esselink_settings_redirects
  • Zombie WordPress options detected upon uninstall: 43 options
    • db_upgraded
    • esselink_nu_settings_passive_listeners_fix
    • esselink_nu_settings_disable_xmlrpc
    • esselink_nu_settings_optimze_cronjob
    • esselink_nu_settings_enable_structured_data_content
    • litespeed.conf.optm-guest_only
    • esselink_nu_settings_robotstxt_crawdelay
    • esselink_nu_settings_remove_recaptcha
    • esselink_nu_settings_wp_collector_ps_mobile
    • litespeed.conf.esi
    • ...

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=esselink_nu_settings
    • > Notice in wp-content/plugins/esselinknu-settings/includes/admin-settings.php+87
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=esselink_nu_settings
    • > Notice in wp-content/plugins/esselinknu-settings/includes/admin-settings.php+92
    Undefined index: replacedomain
    • > GET request to /wp-admin/options-general.php?page=esselink_nu_settings
    • > Notice in wp-content/plugins/esselinknu-settings/includes/admin-settings.php+153
    Undefined index: collect

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: esselinknu, esselink

esselinknu-settings/esselink-nu-settings.php 92% from 13 tests

The principal PHP file in "Esselink.nu Settings" v. 2.84 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("esselinknu-settings.php" instead of "esselink-nu-settings.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,183 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP126172722,914
SVG101228
CSS14041

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions61
▷ Named functions5793.44%
▷ Anonymous functions46.56%
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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/favicon.png0.90KB0.08KB▼ 91.12%
images/google-pagespeed-insights.png19.36KB10.02KB▼ 48.24%
images/sprite.png2.07KB2.04KB▼ 1.42%