Benchmarks
Plugin footprint 83% from 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.02MB] [CPU: ▼2.55ms] Passed 4 tests
This is a short check of server-side resources used by Text Selection Color
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.29 ▼2.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.57 ▼2.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.03 ▲0.22 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.04 ▼5.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.49 ▲5.20 |
Text Selection Color /wp-admin/options-general.php?page=tsc_settings | 3.21 | 29.99 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Text Selection Color: 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,825 ▲54 | 13.62 ▼1.13 | 1.83 ▼0.74 | 45.07 ▲2.57 |
Dashboard /wp-admin | 2,226 ▲38 | 5.14 ▲0.27 | 102.58 ▼18.36 | 39.28 ▼4.71 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.50 ▲0.50 | 40.67 ▲4.79 | 35.63 ▲2.06 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.31 ▲0.12 | 648.70 ▼44.80 | 36.24 ▼31.54 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.22 ▼0.02 | 96.57 ▼23.11 | 43.37 ▼5.34 |
Text Selection Color /wp-admin/options-general.php?page=tsc_settings | 991 | 2.22 | 44.99 | 29.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/text-selection-color/text-selection-color.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Text Selection Color settings page), #2 (Selection color preview after changing colors)
text-selection-color/text-selection-color.php Passed 13 tests
"Text Selection Color" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Change the text selection color easily in the website
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
Success! There were no dangerous files found in this plugin214 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 18 | 18 | 99 |
PHP | 1 | 28 | 13 | 79 |
JavaScript | 1 | 10 | 2 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 6 | |
▷ Named functions | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 105.46KB | 34.64KB | ▼ 67.15% |
screenshot-1.png | 50.00KB | 17.08KB | ▼ 65.85% |