Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.32ms] Passed 4 tests
Analyzing server-side resources used by Text Case Converter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 38.31 ▼2.51 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.95 ▼3.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.68 ▼1.41 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 83.45 ▼13.89 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.75 ▲5.24 |
Text Case Converter /wp-admin/options-general.php?page=txtcc | 3.43 | 33.18 |
Server storage [IO: ▲4.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 113 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
_txtcc_all_settings |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Text Case Converter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲159 | 15.52 ▲1.18 | 5.54 ▲3.91 | 39.58 ▼4.18 |
Dashboard /wp-admin | 2,241 ▲70 | 6.64 ▲1.05 | 111.49 ▲8.35 | 39.41 ▼7.79 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 3.46 ▲1.53 | 48.73 ▲9.74 | 44.01 ▲8.39 |
Add New Post /wp-admin/post-new.php | 1,721 ▲195 | 22.86 ▼0.22 | 645.95 ▼9.49 | 34.11 ▼30.40 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 5.07 ▲0.98 | 121.44 ▲15.82 | 43.21 ▲0.19 |
Text Case Converter /wp-admin/options-general.php?page=txtcc | 2,322 | 10.58 | 357.83 | 102.59 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- _txtcc_all_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_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)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=txtcc
- > Warning in wp-content/plugins/text-case-converter/include/txtccsetting.php+227
include(wp-content/plugins/text-case-converter/include/txtcc_setting_support_html.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/options-general.php?page=txtcc
- > Warning in wp-content/plugins/text-case-converter/include/txtccsetting.php+227
include(): Failed opening 'wp-content/plugins/text-case-converter/include/txtcc_setting_support_html.php' for inclusion (include_path='.:/usr/share/php')
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/text-case-converter/include/txtcc_inscript.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-case-converter/include/functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/text-case-converter/include/txtccsetting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Plugin activation Page), #2 (Block Editor View)
text-case-converter/txtcc.php 85% from 13 tests
The main PHP script in "Text Case Converter" version 1.4.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("text-case-converter.php" instead of "txtcc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected16,279 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,311 | 1,902 | 13,369 |
PO File | 11 | 1,171 | 1,446 | 2,310 |
PHP | 4 | 23 | 27 | 423 |
CSS | 7 | 14 | 20 | 175 |
SVG | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
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 | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
46 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/icons/4.png | 0.84KB | 0.71KB | ▼ 15.60% |
assets/js/icons/S3.png | 3.06KB | 0.22KB | ▼ 92.79% |
assets/js/icons/video.png | 0.63KB | 0.59KB | ▼ 5.62% |
assets/js/icons/cc.png | 0.37KB | 0.45KB | 0.00% |
assets/js/icons/insert.png | 0.51KB | 0.33KB | ▼ 34.36% |