Benchmarks
Plugin footprint Passed 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.13MB] [CPU: ▼288.23ms] Passed 4 tests
An overview of server-side resources used by Advanced Settings
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.21 | 64.58 ▲9.11 |
Dashboard /wp-admin | 3.57 ▲0.16 | 45.22 ▲4.71 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 49.92 ▼0.05 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.06 | 99.29 ▼1,160.90 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 35.07 ▲3.31 |
Post Types /wp-admin/options-general.php?page=post-types | 3.48 | 30.31 |
Styles /wp-admin/options-general.php?page=advanced-settings-styles | 3.43 | 31.98 |
HTML Code /wp-admin/options-general.php?page=advanced-settings-code | 3.44 | 26.49 |
Scripts /wp-admin/options-general.php?page=advanced-settings-scripts | 3.43 | 26.20 |
System /wp-admin/options-general.php?page=advanced-settings-system | 3.44 | 31.55 |
Filters/Actions /wp-admin/options-general.php?page=advanced-settings-filters | 3.42 | 35.72 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics 75% from 4 tests
An overview of browser requirements for Advanced Settings
Please improve the following
- Nodes: For the best user experience, please reduce the number of DOM nodes under 25,000 (currently 25,069 on /wp-admin/options-general.php?page=advanced-settings-filters)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲71 | 16.01 ▲0.32 | 6.19 ▲0.17 | 2.37 ▼0.46 |
Dashboard /wp-admin | 2,920 ▲59 | 6.17 ▲0.10 | 128.53 ▼10.46 | 177.48 ▲14.44 |
Posts /wp-admin/edit.php | 2,719 ▲28 | 3.23 ▼0.00 | 65.53 ▲0.84 | 138.65 ▼6.41 |
Add New Post /wp-admin/post-new.php | 1,770 ▲109 | 21.33 ▲5.55 | 464.89 ▲28.17 | 157.66 ▲0.15 |
Media Library /wp-admin/upload.php | 1,728 ▲30 | 5.50 ▲0.01 | 147.82 ▲1.38 | 187.42 ▲4.40 |
Post Types /wp-admin/options-general.php?page=post-types | 1,984 | 2.73 | 54.99 | 169.70 |
Styles /wp-admin/options-general.php?page=advanced-settings-styles | 1,122 | 2.38 | 54.77 | 186.43 |
HTML Code /wp-admin/options-general.php?page=advanced-settings-code | 1,398 | 2.39 | 54.05 | 181.90 |
Scripts /wp-admin/options-general.php?page=advanced-settings-scripts | 1,186 | 2.51 | 54.35 | 177.55 |
System /wp-admin/options-general.php?page=advanced-settings-system | 1,313 | 2.38 | 55.20 | 179.88 |
Filters/Actions /wp-admin/options-general.php?page=advanced-settings-filters | 25,069 | 4.01 | 84.70 | 261.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin_area() in wp-content/plugins/advanced-settings/actions-scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin_area() in wp-content/plugins/advanced-settings/actions-styles.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-settings/index.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced-settings-filters
- > Network (severe)
https://ronconi.dev/favicon.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
advanced-settings/index.php 92% from 13 tests
The main PHP script in "Advanced Settings" version 2.3.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-settings.php" instead of "index.php")
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 plugin1,727 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 408 | 380 | 1,727 |
PHP code Passed 2 tests
An short overview of 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 code | 0.49 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 72 | |
▷ Named functions | 59 | 81.94% |
▷ Anonymous functions | 13 | 18.06% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected