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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.00 ▼33.08 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.29 ▼42.94 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.49 ▼36.18 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.55 ▼99.93 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲222 | 14.35 ▼0.00 | 1.96 ▲0.13 | 37.32 ▼6.93 |
Dashboard /wp-admin | 2,283 ▲109 | 5.61 ▼0.06 | 94.63 ▼12.00 | 40.25 ▼5.37 |
Posts /wp-admin/edit.php | 2,188 ▲85 | 1.97 ▼0.06 | 41.86 ▼0.41 | 39.56 ▲5.81 |
Add New Post /wp-admin/post-new.php | 1,600 ▲74 | 20.95 ▼2.13 | 627.31 ▼43.73 | 50.99 ▼18.26 |
Media Library /wp-admin/upload.php | 1,488 ▲85 | 4.23 ▲0.02 | 97.09 ▼11.88 | 43.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 858 | 740 | 7,012 |
CSS | 6 | 68 | 49 | 551 |
JavaScript | 3 | 43 | 10 | 356 |
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 code | 0.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 239 | |
▷ Named functions | 236 | 98.74% |
▷ Anonymous functions | 3 | 1.26% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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