Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.46ms] Passed 4 tests
Server-side resources used by Advanced Settings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 37.05 ▼2.53 |
Dashboard /wp-admin | 3.46 ▲0.16 | 48.90 ▲0.49 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.74 ▲6.24 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.26 ▼1.07 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 35.66 ▲1.29 |
Styles /wp-admin/options-general.php?page=advanced-settings-styles | 3.36 | 35.19 |
System /wp-admin/options-general.php?page=advanced-settings-system | 3.37 | 33.95 |
Post Types /wp-admin/options-general.php?page=post-types | 3.41 | 32.74 |
Filters/Actions /wp-admin/options-general.php?page=advanced-settings-filters | 3.35 | 37.48 |
HTML Code /wp-admin/options-general.php?page=advanced-settings-code | 3.37 | 33.35 |
Scripts /wp-admin/options-general.php?page=advanced-settings-scripts | 3.36 | 32.46 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Advanced Settings: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲53 | 13.30 ▼1.07 | 4.78 ▲2.75 | 41.97 ▼3.85 |
Dashboard /wp-admin | 2,230 ▲39 | 4.85 ▼0.05 | 107.51 ▼6.72 | 37.15 ▼10.10 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.05 ▲0.05 | 39.81 ▲0.47 | 33.78 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,537 ▼6 | 23.16 ▲5.03 | 668.58 ▲30.13 | 60.36 ▲12.44 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.13 ▼0.05 | 112.20 ▲8.99 | 47.34 ▲6.26 |
Styles /wp-admin/options-general.php?page=advanced-settings-styles | 876 | 2.02 | 24.51 | 49.36 |
System /wp-admin/options-general.php?page=advanced-settings-system | 986 | 2.04 | 28.20 | 37.67 |
Post Types /wp-admin/options-general.php?page=post-types | 1,418 | 1.72 | 25.63 | 36.67 |
Filters/Actions /wp-admin/options-general.php?page=advanced-settings-filters | 19,398 | 2.78 | 43.39 | 119.61 |
HTML Code /wp-admin/options-general.php?page=advanced-settings-code | 1,054 | 2.04 | 23.42 | 39.42 |
Scripts /wp-admin/options-general.php?page=advanced-settings-scripts | 921 | 2.02 | 28.95 | 46.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-settings/index.php:28
- > 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_area() in wp-content/plugins/advanced-settings/actions-scripts.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced-settings-scripts
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
advanced-settings/index.php 92% from 13 tests
This is the main PHP file of "Advanced Settings" version 2.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-settings.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous 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
Analyzing cyclomatic complexity and code structure
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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin