Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.17MB] [CPU: ▼313.63ms] Passed 4 tests
Analyzing server-side resources used by WP Word Count
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.11 | 43.57 ▼8.53 |
Dashboard /wp-admin | 3.60 ▲0.20 | 39.10 ▲6.86 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 37.94 ▼3.49 |
Add New Post /wp-admin/post-new.php | 5.81 ▼1.16 | 58.73 ▼1,243.37 |
Media Library /wp-admin/upload.php | 3.48 ▲0.19 | 26.06 ▲0.87 |
Statistics /wp-admin/admin.php?page=wp-word-count | 3.43 | 23.79 |
Upgrade to Pro /wp-admin/admin.php?page=wp-word-count-upgrade | 3.47 | 23.99 |
Calculate /wp-admin/admin.php?page=wp-word-count-calculate | 3.47 | 22.96 |
Reading Time /wp-admin/admin.php?page=wp-word-count-reading-time | 3.46 | 24.43 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_wpwc_posts |
New WordPress options |
---|
wpwc_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Word Count
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲100 | 16.24 ▲0.23 | 5.68 ▼0.14 | 2.29 ▼0.10 |
Dashboard /wp-admin | 2,945 ▲87 | 6.33 ▲0.08 | 121.86 ▼17.52 | 155.81 ▼13.35 |
Posts /wp-admin/edit.php | 2,746 ▲52 | 3.28 ▲0.03 | 64.82 ▲0.79 | 143.31 ▼5.52 |
Add New Post /wp-admin/post-new.php | 1,701 ▲40 | 16.12 ▼5.44 | 428.80 ▲4.53 | 159.23 ▲2.69 |
Media Library /wp-admin/upload.php | 1,749 ▲54 | 5.66 ▲0.13 | 146.20 ▲7.43 | 194.21 ▲9.29 |
Statistics /wp-admin/admin.php?page=wp-word-count | 1,045 | 2.83 | 56.47 | 102.45 |
Upgrade to Pro /wp-admin/admin.php?page=wp-word-count-upgrade | 1,176 | 2.78 | 55.85 | 169.68 |
Calculate /wp-admin/admin.php?page=wp-word-count-calculate | 1,198 | 2.87 | 57.70 | 140.96 |
Reading Time /wp-admin/admin.php?page=wp-word-count-reading-time | 1,137 | 2.86 | 56.15 | 152.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-word-count-reading-time
- > Notice in wp-content/plugins/wp-word-count/admin/class-wpwc-admin.php+205
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-word-count-reading-time
- > Notice in wp-content/plugins/wp-word-count/admin/class-wpwc-admin.php+205
Trying to access array offset on value of type null
SRP 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-word-count/admin/partials/wpwc-footer.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/wp-word-count/admin/partials/wpwc-statistics-menu.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-word-count/admin/partials/wpwc-upgrade.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-word-count/admin/partials/wpwc-statistics.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-word-count/admin/partials/wpwc-reading-time.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-word-count/admin/partials/wpwc-statistics-totals.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-word-count/admin/partials/wpwc-calculate.php:18
- > 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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: reading time, authors, words, word count, writing
wp-word-count/wpwordcount.php 92% from 13 tests
The main PHP script in "WP Word Count" version 3.2.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-word-count.php" instead of "wpwordcount.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,403 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 304 | 581 | 1,096 |
PO File | 1 | 47 | 81 | 162 |
JavaScript | 1 | 51 | 2 | 79 |
CSS | 1 | 21 | 0 | 66 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/linksoftware.png | 1.37KB | 0.68KB | ▼ 50.75% |