10% xtra-settings

Code Review | XTRA Settings

WordPress plugin XTRA Settings scored10%from 54 tests.

About plugin

  • Plugin page: xtra-settings
  • Plugin version: 2.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Oct 20, 2022
  • Number of updates: 147
  • Update frequency: every 13.4 days
  • Top authors: fures (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

90+ active /12,667 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/xtra-settings/xtra.php+376
    Undefined index: xtra_options_convert_once

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

This is a short check of server-side resources used by XTRA Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.00 ▼33.08
Dashboard /wp-admin2.08 ▼1.225.29 ▼42.94
Posts /wp-admin/edit.php2.08 ▼1.285.49 ▼36.18
Add New Post /wp-admin/post-new.php2.08 ▼3.815.55 ▼99.93
Media Library /wp-admin/upload.php2.08 ▼1.155.60 ▼29.37

Server storage [IO: ▲0.42MB] [DB: ▲0.08MB] 67% from 3 tests

Filesystem and database footprint
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (3.56KB) outside of "wp-content/plugins/xtra-settings/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
xtra_settings_data
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for XTRA Settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲22214.35 ▼0.001.96 ▲0.1337.32 ▼6.93
Dashboard /wp-admin2,283 ▲1095.61 ▼0.0694.63 ▼12.0040.25 ▼5.37
Posts /wp-admin/edit.php2,188 ▲851.97 ▼0.0641.86 ▼0.4139.56 ▲5.81
Add New Post /wp-admin/post-new.php1,600 ▲7420.95 ▼2.13627.31 ▼43.7350.99 ▼18.26
Media Library /wp-admin/upload.php1,488 ▲854.23 ▲0.0297.09 ▼11.8843.84 ▼3.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/xtra-settings/xtra.php+376
    Undefined index: xtra_options_convert_once
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • xtra_settings_data
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xtra-settings/ajax.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: tips and tricks, wordpress options, tweaks, wordpress settings, hidden settings

xtra-settings/xtra.php 85% from 13 tests

The principal PHP file in "XTRA Settings" v. 2.1.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("xtra-settings.php" instead of "xtra.php")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,919 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP58587407,012
CSS66849551
JavaScript34310356

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions239
▷ Named functions23698.74%
▷ Anonymous functions31.26%
Constants12
▷ Global constants12100.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
There were not PNG files found in your plugin