Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.52ms] Passed 4 tests
Server-side resources used by Change Text Case
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.92 ▼5.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.52 ▼7.34 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.56 ▼0.48 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.02 ▼8.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.31 ▼0.19 |
Change Case /wp-admin/options-general.php?page=change-case | 3.20 | 27.61 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
CC_HR_OPTIONS |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Change Text Case
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.37 ▼0.98 | 1.60 ▼0.36 | 43.62 ▼0.83 |
Dashboard /wp-admin | 2,204 ▲16 | 5.79 ▲0.92 | 106.52 ▼10.67 | 39.47 ▼8.40 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.98 ▼0.04 | 38.46 ▲3.71 | 35.93 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.13 ▲5.31 | 630.25 ▼80.64 | 53.10 ▼0.20 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.01 | 93.19 ▼6.61 | 40.38 ▼6.07 |
Change Case /wp-admin/options-general.php?page=change-case | 866 | 2.03 | 23.80 | 28.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- CC_HR_OPTIONS
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/change-case-for-tinymce/change-case.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/change-case-for-tinymce/change-case.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: tinymce, text, case, editor
change-case-for-tinymce/change-case.php 92% from 13 tests
The principal PHP file in "Change Text Case" v. 2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("change-case-for-tinymce.php" instead of "change-case.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected210 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 10 | 124 |
JavaScript | 1 | 7 | 3 | 86 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 6 | 75.00% |
▷ Public methods | 8 | 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 | 3 | |
▷ Global constants | 3 | 100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/ac.png | 0.53KB | 0.32KB | ▼ 39.81% |
js/sc.png | 0.55KB | 0.31KB | ▼ 43.24% |
js/tc.png | 0.48KB | 0.29KB | ▼ 39.06% |
js/nc.png | 0.46KB | 0.28KB | ▼ 40.08% |