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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.92ms] Passed 4 tests
A check of server-side resources used by Comment Limiter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.19 ▼2.41 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.71 ▲4.95 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.09 ▲9.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.38 ▼14.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.66 ▲3.86 |
All Comments /wp-admin/edit-comments.php | 3.27 | 41.80 |
Comment Limiter /wp-admin/edit-comments.php?page=comment-limiter | 3.22 | 31.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Comment Limiter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 13.67 ▼1.14 | 1.69 ▼0.12 | 39.86 ▼3.54 |
Dashboard /wp-admin | 2,217 ▲32 | 5.82 ▼0.06 | 107.97 ▼6.57 | 39.60 ▼7.27 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.00 ▲0.01 | 40.02 ▼0.45 | 35.40 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,548 ▲5 | 23.07 ▲4.79 | 617.09 ▼34.92 | 69.84 ▼2.34 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.23 ▲0.06 | 99.97 ▼4.48 | 42.08 ▼0.26 |
All Comments /wp-admin/edit-comments.php | 1,812 | 2.30 | 36.18 | 34.46 |
Comment Limiter /wp-admin/edit-comments.php?page=comment-limiter | 898 | 2.05 | 22.23 | 25.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: length, minimum comment, maximum, comment characters, limit...
comment-limiter/comment-limiter.php Passed 13 tests
This is the main PHP file of "Comment Limiter" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
A simple plugin that limit the maximum and minimum of characters allowed in a post comment
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected404 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 115 | 265 | 352 |
Markdown | 1 | 13 | 0 | 31 |
CSS | 1 | 5 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 27 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.57% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected