Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.55ms] Passed 4 tests
Analyzing server-side resources used by Author Wordcount
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.84 ▲1.52 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.93 ▼4.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.37 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.33 ▲12.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.67 ▼1.53 |
Author Wordcount /wp-admin/options-general.php?page=wp_author_wordcount | 3.23 | 30.77 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_wp_author_wordcount |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Author Wordcount
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲53 | 13.26 ▼1.04 | 1.81 ▼0.29 | 40.95 ▲3.52 |
Dashboard /wp-admin | 2,209 ▲18 | 5.90 ▲0.99 | 97.33 ▼5.81 | 40.31 ▲0.24 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.00 ▲0.00 | 39.69 ▲1.36 | 35.62 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.65 ▼4.63 | 643.96 ▼32.73 | 56.00 ▲4.30 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▲0.00 | 96.21 ▼4.34 | 41.34 ▼6.25 |
Author Wordcount /wp-admin/options-general.php?page=wp_author_wordcount | 827 | 2.05 | 23.95 | 25.41 |
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
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_wp_author_wordcount
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-wordcount/author-wordcount.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: writing, wordcount, author
author-wordcount/author-wordcount.php Passed 13 tests
"Author Wordcount" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Allows authors to show word counts for works in progress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin197 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 10 | 169 |
CSS | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
2 PNG files occupy 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 215.28KB | 68.18KB | ▼ 68.33% |
screenshot-1.png | 165.50KB | 52.62KB | ▼ 68.21% |