Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.09ms] Passed 4 tests
An overview of server-side resources used by TWC-Templates-WP-Comments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.11 ▲0.44 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.74 ▼3.63 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 45.27 ▼6.13 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.35 ▼26.33 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.56 ▼0.28 |
TWC Option /wp-admin/options-general.php?page=TWC_Option_Ident | 3.30 | 39.62 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 16 new options
New WordPress options |
---|
twc_option_TXT_comm_h2 |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
twc_option_TXT_comm_input1 |
twc_option_TXT_comm_input2 |
twc_option_butt |
widget_theysaidso_widget |
twc_option_TXT_comm_form_h2 |
... |
Browser metrics Passed 4 tests
Checking browser requirements for TWC-Templates-WP-Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.44 | 1.73 ▼0.25 | 43.88 ▲4.58 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.05 | 94.11 ▼11.11 | 41.89 ▲2.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.00 | 32.83 ▼9.74 | 35.15 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 22.87 ▲4.72 | 653.65 ▲45.69 | 54.37 ▼13.96 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.13 ▼0.09 | 95.77 ▼4.66 | 42.17 ▲0.43 |
TWC Option /wp-admin/options-general.php?page=TWC_Option_Ident | 1,055 | 3.04 | 40.60 | 58.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 16 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- twc_option_img_cite
- twc_option_TXT_comm_textarea
- twc_option_butt
- twc_option_TXT_comm_input1
- widget_recent-posts
- twc_option_TXT_comm_no_comm
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function comments_open() in wp-content/plugins/twc-templates-wp-comments/templates/comments1.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/twc-templates-wp-comments/TWC-Templates-WP-Comments.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: comments, spam
twc-templates-wp-comments/TWC-Templates-WP-Comments.php 85% from 13 tests
The main PHP script in "TWC-Templates-WP-Comments" version 0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("twc-templates-wp-comments.php" instead of "TWC-Templates-WP-Comments.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected657 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 42 | 292 |
PO File | 2 | 55 | 60 | 158 |
CSS | 2 | 0 | 0 | 108 |
JavaScript | 2 | 0 | 0 | 99 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/add-img.png | 4.10KB | 0.61KB | ▼ 85.10% |
templates/img/str-1.png | 3.15KB | 0.34KB | ▼ 89.25% |
templates/img/str-2.png | 3.18KB | 0.34KB | ▼ 89.33% |