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
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.54ms] Passed 4 tests
A check of server-side resources used by Count Characters, Words and Paragraphs while typing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 36.86 ▼8.62 |
Dashboard /wp-admin | 3.44 ▲0.14 | 46.50 ▼1.48 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.04 ▲3.08 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 80.69 ▼21.69 |
Media Library /wp-admin/upload.php | 3.37 ▲0.13 | 35.65 ▲1.65 |
Count CWP /wp-admin/options-general.php?page=count-cwp | 3.34 | 29.97 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Count Characters, Words and Paragraphs while typing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.15 ▼0.56 | 1.70 ▲0.09 | 40.21 ▼3.63 |
Dashboard /wp-admin | 2,202 ▲28 | 5.67 ▲0.12 | 82.93 ▼3.69 | 35.54 ▼5.79 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.07 ▼0.07 | 40.00 ▲4.19 | 35.58 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.10 ▼0.06 | 649.54 ▲23.76 | 56.34 ▲7.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.02 | 95.47 ▼2.09 | 40.95 ▼2.94 |
Count CWP /wp-admin/options-general.php?page=count-cwp | 992 | 2.00 | 23.36 | 28.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/count-cwp/uninstall.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/count-cwp/includes/class-w357-count-cwp.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/count-cwp/admin/settings-view.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: paragraphs, counter web357, count, words, spaces...
count-cwp/count-cwp.php 92% from 13 tests
The main PHP script in "Count Characters, Words and Paragraphs while typing" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
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
Good job! No executable or dangerous file extensions detected824 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 138 | 543 | 588 |
CSS | 4 | 21 | 0 | 132 |
PO File | 1 | 23 | 32 | 94 |
JavaScript | 4 | 2 | 12 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 34 | 87.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.82% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/web357-logo.png | 7.12KB | 2.83KB | ▼ 60.18% |
admin/img/count-cwp-wordpress-plugin-120x200.png | 44.59KB | 9.90KB | ▼ 77.79% |