Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.36MB] [CPU: ▼19.08ms] Passed 4 tests
Server-side resources used by FriendlyCase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 37.82 ▼3.68 |
Dashboard /wp-admin | 3.24 ▼0.06 | 41.40 ▼13.50 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 40.52 ▼9.72 |
Add New Post /wp-admin/post-new.php | 4.60 ▼1.28 | 45.03 ▼49.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 38.96 ▲4.18 |
FriendlyCase Settings /wp-admin/options-general.php?page=friendlycase_options | 3.18 | 31.01 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for FriendlyCase
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.65 ▼1.14 | 1.79 ▼0.30 | 42.30 ▼6.88 |
Dashboard /wp-admin | 2,228 ▲25 | 4.83 ▼1.07 | 99.52 ▼4.66 | 40.10 ▲1.06 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.02 | 38.13 ▲2.19 | 35.23 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,548 ▲13 | 23.34 ▲0.13 | 661.12 ▼13.62 | 53.51 ▲8.07 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.09 | 100.71 ▲0.80 | 41.79 ▼1.44 |
FriendlyCase Settings /wp-admin/options-general.php?page=friendlycase_options | 910 | 1.99 | 25.45 | 54.93 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=friendlycase_options
- > Warning in wp-content/plugins/friendlycase/friendlycase.php+96
Use of undefined constant fc_text_lc - assumed 'fc_text_lc' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=friendlycase_options
- > Warning in wp-content/plugins/friendlycase/friendlycase.php+97
Use of undefined constant fc_text_uc - assumed 'fc_text_uc' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=friendlycase_options
- > Warning in wp-content/plugins/friendlycase/friendlycase.php+98
Use of undefined constant fc_text_ig - assumed 'fc_text_ig' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=friendlycase_options
- > Warning in wp-content/plugins/friendlycase/friendlycase.php+99
Use of undefined constant fc_wrappit - assumed 'fc_wrappit' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=friendlycase_options
- > Warning in wp-content/plugins/friendlycase/friendlycase.php+100
Use of undefined constant fc_firstonly - assumed 'fc_firstonly' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/friendlycase/friendlycase.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #1 (Options panel showing User entered words, css styling and sentence case option.) image missing
friendlycase/friendlycase.php Passed 13 tests
The main PHP script in "FriendlyCase" version 1.0.7 is automatically included on every request by WordPress
96 characters long description:
Enable Friendly, User-Definable Word Capitalization and Sentence Casing in Post and Page Titles.
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
Good job! No executable or dangerous file extensions detected103 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 1 | 39 | 103 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 99.02KB | 31.51KB | ▼ 68.18% |