Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.66ms] Passed 4 tests
This is a short check of server-side resources used by Find My Agent User and Switch my Theme
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.46 ▼0.66 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.88 ▼14.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.11 ▲0.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 81.61 ▼18.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.56 ▼0.84 |
Find My Agent User and Switch my Theme /wp-admin/themes.php?page=find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php | 3.25 | 33.65 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
mobile_theme_chosen |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Find My Agent User and Switch my Theme
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.53 ▼0.19 | 1.96 ▲0.26 | 42.60 ▲3.74 |
Dashboard /wp-admin | 2,196 ▲19 | 5.56 ▼0.02 | 82.12 ▼4.54 | 35.14 ▼12.25 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.97 ▼0.04 | 32.19 ▼1.83 | 39.07 ▲2.07 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.12 ▼0.32 | 665.59 ▼1.57 | 50.53 ▼7.34 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.16 ▼0.09 | 109.04 ▲8.64 | 46.75 ▲4.88 |
Find My Agent User and Switch my Theme /wp-admin/themes.php?page=find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php | 853 | 2.00 | 29.42 | 27.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- mobile_theme_chosen
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php
- > Notice in wp-content/plugins/find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme_html.php+16
Undefined index: mobile_theme_chosen
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme_html.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== find-my-agent-user-and-switch-my-theme ===
)
find-my-agent-user-and-switch-my-theme/find_my_agent_user_and_switch_my_theme.php 92% from 13 tests
The principal PHP file in "Find My Agent User and Switch my Theme" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("find-my-agent-user-and-switch-my-theme.php" instead of "find_my_agent_user_and_switch_my_theme.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin63 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 25 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin