Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.44ms] Passed 4 tests
An overview of server-side resources used by Comments Reactions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.02 ▼3.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.22 ▼3.96 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.05 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.82 ▼15.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.50 ▲1.26 |
Server storage [IO: ▲0.26MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Comments Reactions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.59 ▼1.03 | 5.47 ▲3.88 | 39.67 ▲1.49 |
Dashboard /wp-admin | 2,206 ▲14 | 5.83 ▲0.85 | 101.66 ▼10.85 | 37.78 ▼3.71 |
Posts /wp-admin/edit.php | 2,086 ▲18 | 2.03 ▲0.01 | 35.98 ▲2.82 | 33.11 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.01 ▼0.06 | 669.93 ▼16.63 | 57.92 ▼2.12 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.03 | 94.45 ▼1.67 | 42.90 ▼3.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Good news, no errors were detected
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
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/comments-reactions/templates/reactions.php:37
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/comments-reactions/templates/reactions.php on line 8
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/comments-reactions/templates/reactions.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comments-reactions/templates/reactions.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comments-reactions/templates/reactions.php on line 6
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/comments-reactions/templates/reactions.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/comments-reactions/templates/reactions.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: comments, rating, emoji, reactions, facebook reactions...
comments-reactions/comments-reactions.php 85% from 13 tests
The main PHP file in "Comments Reactions" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
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,371 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 1,753 |
PHP | 17 | 185 | 334 | 796 |
JavaScript | 2 | 84 | 72 | 346 |
Sass | 8 | 59 | 14 | 311 |
SVG | 6 | 0 | 6 | 118 |
PO File | 1 | 7 | 15 | 35 |
Markdown | 1 | 10 | 0 | 11 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 43 | |
▷ Static methods | 4 | 9.30% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 2 | 4.65% |
▷ Private methods | 1 | 2.33% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin