Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.51MB] [CPU: ▼11.54ms] Passed 4 tests
Analyzing server-side resources used by WordPress Word Count and Limit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.84 ▲1.39 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.34 ▼1.21 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.64 ▼3.07 |
Add New Post /wp-admin/post-new.php | 3.49 ▼2.39 | 54.13 ▼43.28 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.93 ▲5.17 |
Word Count and Limit /wp-admin/options-general.php?page=wpwcl_options_page | 3.31 | 29.32 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Word Count and Limit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.32 ▼1.43 | 4.15 ▲2.42 | 39.98 ▼0.36 |
Dashboard /wp-admin | 2,213 ▲28 | 5.80 ▼0.21 | 98.69 ▼7.28 | 36.69 ▼10.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 34.33 ▼5.83 | 32.30 ▼4.96 |
Add New Post /wp-admin/post-new.php | 3,142 ▲1,605 | 7.76 ▼10.52 | 208.08 ▼405.64 | 72.67 ▲25.49 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▼0.03 | 103.56 ▲8.72 | 45.12 ▲3.40 |
Word Count and Limit /wp-admin/options-general.php?page=wpwcl_options_page | 1,128 | 1.86 | 25.57 | 32.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/word-count-and-limit/word-count-and-limit.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: limit, count, words, characters
word-count-and-limit/word-count-and-limit.php Passed 13 tests
The main file in "WordPress Word Count and Limit" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
116 characters long description:
Dynamically counts the words in edit post window and limit the character count if needed for one or more user roles.
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 detected697 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 80 | 119 | 511 |
PO File | 1 | 49 | 58 | 186 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
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 | 21 | |
▷ Named functions | 21 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected