Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/siteselector/common.php+132
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.45ms] Passed 4 tests
An overview of server-side resources used by Siteselector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.12 ▲0.05 |
Dashboard /wp-admin | 3.39 ▲0.08 | 49.77 ▲1.17 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 46.68 ▼0.97 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 82.36 ▼5.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 33.30 ▼3.15 |
Siteselector Search /wp-admin/admin.php?page=siteselector_search | 3.31 | 35.51 |
Siteselector Config /wp-admin/admin.php?page=siteselector_config | 3.30 | 30.26 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_siteselector_config |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Siteselector: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.59 ▼0.76 | 8.36 ▲6.82 | 42.94 ▲1.18 |
Dashboard /wp-admin | 2,231 ▲51 | 5.67 ▲0.03 | 96.07 ▲2.97 | 40.21 ▼4.37 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.00 ▼0.03 | 34.79 ▼3.07 | 29.70 ▼7.22 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.12 ▼0.39 | 643.28 ▼11.94 | 53.53 ▼1.93 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.22 ▲0.04 | 95.82 ▼1.35 | 38.32 ▼7.58 |
Siteselector Search /wp-admin/admin.php?page=siteselector_search | 1,119 | 2.09 | 29.52 | 88.39 |
Siteselector Config /wp-admin/admin.php?page=siteselector_config | 935 | 2.12 | 30.75 | 33.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_siteselector_config
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=siteselector_search
- > Notice in wp-content/plugins/siteselector/siteselector_search.php+306
Undefined variable: goesLeft
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=siteselector_search
- > Notice in wp-content/plugins/siteselector/siteselector_search.php+402
Undefined variable: domain
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=siteselector_search
- > Notice in wp-content/plugins/siteselector/siteselector_search.php+402
Undefined variable: key
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=siteselector_search
- > Notice in wp-content/plugins/siteselector/siteselector_search.php+430
Undefined variable: spamNumber
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=siteselector_config
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/siteselector/common.php+132
count(): Parameter must be an array or an object that implements Countable
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=siteselector_config
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/siteselector/siteselector_functions.php+131
Trying to access array offset on value of type null
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
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/siteselector/common.php on line 4
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/siteselector/common.php on line 18
- > PHP Notice
Undefined variable: ub in wp-content/plugins/siteselector/common.php on line 82
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/siteselector/siteselector_config.php:21
- > PHP Notice
Undefined variable: ub in wp-content/plugins/siteselector/common.php on line 94
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/siteselector/siteselector_search.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/siteselector/siteselector_functions.php:16
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/siteselector/common.php on line 98
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=siteselector_search
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=siteselector_search 157:7 Uncaught TypeError: Cannot read properties of null (reading 'status')
- > GET request to /wp-admin/admin.php?page=siteselector_config
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=siteselector_config 158:7 Uncaught TypeError: Cannot read properties of null (reading 'status')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
siteselector/siteselector_functions.php 85% from 13 tests
"Siteselector" version 1.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: The principal plugin file should be the same as the plugin slug ("siteselector.php" instead of "siteselector_functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,672 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 135 | 107 | 1,109 |
CSS | 2 | 17 | 63 | 935 |
JavaScript | 1 | 12 | 41 | 353 |
HTML | 1 | 53 | 78 | 275 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/VenLogo3.png | 38.71KB | 12.44KB | ▼ 67.86% |
media/close.png | 6.53KB | 3.01KB | ▼ 53.91% |
media/blue_tick.png | 3.48KB | 0.94KB | ▼ 73.01% |
media/black_cross.png | 3.59KB | 1.04KB | ▼ 70.94% |