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.49MB] [CPU: ▼16.54ms] Passed 4 tests
An overview of server-side resources used by Change Titles Case
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.07 ▲5.22 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.25 ▲2.24 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 45.06 ▼2.35 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 35.54 ▼67.09 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.22 ▲1.05 |
Title Case /wp-admin/options-general.php?page=change-titles-case | 3.39 | 29.65 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
tc_change_case_defaults |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Change Titles Case
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲64 | 14.77 ▲0.49 | 1.86 ▲0.10 | 43.84 ▲0.98 |
Dashboard /wp-admin | 2,206 ▲29 | 5.74 ▲0.08 | 88.33 ▲2.70 | 37.93 ▼3.72 |
Posts /wp-admin/edit.php | 2,138 ▲41 | 2.07 ▲0.12 | 37.97 ▲3.65 | 32.15 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.10 ▲0.10 | 640.35 ▲59.38 | 47.28 ▼2.47 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.34 ▲0.14 | 98.30 ▲1.70 | 42.72 ▲0.66 |
Title Case /wp-admin/options-general.php?page=change-titles-case | 857 | 2.12 | 28.33 | 26.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- tc_change_case_defaults
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/change-titles-case/admin/partials/change-titles-case-admin-display.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=change-titles-case
- > Network (severe)
wp-json/change-titles-case/v1/init - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: caps, title, utilities, backend, admin
change-titles-case/change-titles-case.php 92% from 13 tests
The entry point to "Change Titles Case" version 1.0.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected756 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 193 | 744 | 647 |
JavaScript | 2 | 23 | 74 | 82 |
CSS | 2 | 6 | 4 | 27 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 11 | 23.40% |
▷ Public methods | 35 | 74.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 25.53% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.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.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/icon-128x128.png | 14.84KB | 5.72KB | ▼ 61.44% |
icons/icon-256x256.png | 51.44KB | 16.39KB | ▼ 68.13% |