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
Installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼16.57ms] Passed 4 tests
Analyzing server-side resources used by Limit Comments and Word Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.17 ▼0.66 |
Dashboard /wp-admin | 3.19 ▼0.12 | 29.51 ▼23.80 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 35.82 ▼13.06 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 74.62 ▼22.74 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 27.14 ▼6.68 |
Comment-Word Limit /wp-admin/options-general.php?page=lpwc_settings_page | 3.33 | 41.42 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
lpwc_comment_rules |
lpwc_show_comment_rules |
lpwc_version |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Limit Comments and Word Count: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.45 | 1.68 ▼0.03 | 39.94 ▼6.08 |
Dashboard /wp-admin | 2,196 ▲16 | 5.60 ▼0.02 | 89.50 ▼2.13 | 41.09 ▲2.58 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.05 ▲0.07 | 36.20 ▼4.28 | 35.41 ▲0.73 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 26.00 ▲2.83 | 879.40 ▲213.84 | 51.92 ▲0.64 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.23 ▲0.02 | 104.52 ▼3.86 | 45.13 ▼3.44 |
Comment-Word Limit /wp-admin/options-general.php?page=lpwc_settings_page | 2,076 | 6.73 | 149.39 | 79.40 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- can_compress_scripts
- db_upgraded
- lpwc_version
- lpwc_show_comment_rules
- lpwc_comment_rules
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/limit-comments-and-word-count/limit-comments-and-word-count.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
7 plugin tags: user comment limit, comments per user, comment limits, comment word limit, subscriber word limit...
limit-comments-and-word-count/limit-comments-and-word-count.php 92% from 13 tests
The main PHP script in "Limit Comments and Word Count" version 1.1.8 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 214 characters long)
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
Good job! No executable or dangerous file extensions detected3,262 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 178 | 247 | 1,152 |
PO File | 5 | 397 | 424 | 1,105 |
JavaScript | 3 | 86 | 251 | 703 |
CSS | 3 | 55 | 26 | 302 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 161.00 |
▷ Minimum class complexity | 161.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 71.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 28.17% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit-icon-30x30.png | 1.42KB | 1.22KB | ▼ 13.94% |
images/x.png | 1.04KB | 1.25KB | 0.00% |
images/trash-icon-30x30.png | 1.23KB | 1.22KB | ▼ 0.79% |