Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.33ms] Passed 4 tests
An overview of server-side resources used by Shortcode in Comment
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 41.84 ▼1.25 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.48 ▼3.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.67 ▲3.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.42 ▼10.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.26 ▲1.13 |
Shortcode in Comment /wp-admin/options-general.php?page=shortcode_in_comment | 3.21 | 30.55 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Shortcode in Comment: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.37 | 1.86 ▲0.16 | 47.11 ▲3.58 |
Dashboard /wp-admin | 2,207 ▲21 | 5.79 ▼0.13 | 98.78 ▼24.41 | 40.05 ▼6.68 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 38.49 ▲4.27 | 35.85 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,548 ▲15 | 18.34 ▼4.92 | 591.34 ▼88.53 | 55.07 ▼1.67 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.05 | 97.75 ▼8.44 | 43.89 ▼0.91 |
Shortcode in Comment /wp-admin/options-general.php?page=shortcode_in_comment | 785 | 2.03 | 26.74 | 25.36 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcode-in-comment/shortcode-in-comment.php:17
- > 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
2 plugin tags: shortcode, comments
shortcode-in-comment/shortcode-in-comment.php Passed 13 tests
The entry point to "Shortcode in Comment" version 1.1.1 is a PHP file that has certain tags in its header comment area
46 characters long description:
Allow users to use some shortcodes in comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected115 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 10 | 61 |
PO File | 2 | 14 | 21 | 54 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin