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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼136.44ms] Passed 4 tests
This is a short check of server-side resources used by TextSanity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▲0.39 | 50.99 ▲22.84 |
Dashboard /wp-admin | 3.43 ▲0.37 | 50.03 ▲5.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.36 | 47.50 ▲6.36 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 95.30 ▼562.30 |
Media Library /wp-admin/upload.php | 3.31 ▲0.30 | 40.15 ▲4.97 |
Account Connection /wp-admin/admin.php?page=txsy_connection | 3.28 | 36.14 |
Texting Widgets /wp-admin/edit.php?post_type=txsy_widget | 3.17 | 28.73 |
Help /wp-admin/admin.php?page=txsy_help | 3.27 | 34.13 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_textsanity_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TextSanity
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,837 ▲241 | 15.95 ▲0.44 | 9.18 ▼1.12 | 56.07 ▲0.52 |
Dashboard /wp-admin | 3,100 ▲169 | 5.88 ▼0.08 | 149.53 ▼4.10 | 191.74 ▲71.87 |
Posts /wp-admin/edit.php | 2,865 ▲126 | 2.71 ▲0.02 | 65.85 ▼9.40 | 90.68 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,712 ▲121 | 18.40 ▼0.34 | 392.56 ▼21.47 | 117.26 ▲6.64 |
Media Library /wp-admin/upload.php | 1,940 ▲133 | 5.03 ▲0.01 | 154.72 ▼8.30 | 122.25 ▼0.40 |
Account Connection /wp-admin/admin.php?page=txsy_connection | 1,164 | 2.80 | 71.77 | 72.46 |
Texting Widgets /wp-admin/edit.php?post_type=txsy_widget | 1,160 | 2.82 | 68.07 | 67.72 |
Help /wp-admin/admin.php?page=txsy_help | 1,164 | 2.08 | 59.70 | 75.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_textsanity_widget
Smoke tests 50% 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 errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=txsy_help
- > Notice in wp-content/plugins/textsanity/views/admin_help.php+1
Undefined variable: action
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 fix the following
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/textsanity/views/front_popup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/textsanity/views/admin_settings.php:9
- > PHP Notice
Undefined variable: key in wp-content/plugins/textsanity/views/admin_setting_edit.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/textsanity/views/admin_connect.php:2
- > PHP Notice
Undefined variable: action in wp-content/plugins/textsanity/views/admin_help.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/textsanity/views/admin_cpt_details.php:4
- > PHP Notice
Undefined variable: key in wp-content/plugins/textsanity/views/admin_setting_edit.php on line 4
- > PHP Notice
Undefined variable: key in wp-content/plugins/textsanity/views/admin_setting_edit.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/textsanity/views/admin_help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/textsanity/views/admin_setting_edit.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Contributors: The plugin contributors field is missing
textsanity/main.php 92% from 13 tests
The main PHP file in "TextSanity" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("textsanity.php" instead of "main.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
There were no executable files found in this plugin2,424 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 270 | 89 | 1,582 |
CSS | 3 | 39 | 17 | 391 |
JavaScript | 3 | 71 | 85 | 355 |
SVG | 1 | 0 | 0 | 96 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/textsanity_logo_150px.png | 4.47KB | 3.38KB | ▼ 24.34% |