Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.19ms] Passed 4 tests
An overview of server-side resources used by Compassionate Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.36 ▼1.55 |
Dashboard /wp-admin | 3.35 ▲0.05 | 55.98 ▲2.15 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 50.50 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.64 ▼15.58 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.24 ▲0.83 |
Compassionate Comments /wp-admin/options-general.php?page=compassionate-comments | 3.26 | 36.47 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Compassionate Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲113 | 17.37 ▲2.69 | 124.20 ▲122.24 | 51.49 ▲9.72 |
Dashboard /wp-admin | 2,202 ▲28 | 5.58 ▼0.04 | 79.64 ▼11.33 | 39.21 ▼5.54 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.00 | 34.59 ▼1.81 | 35.76 ▼4.20 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.09 ▲5.67 | 650.13 ▼6.21 | 57.44 ▲7.16 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.21 ▼0.02 | 94.12 ▼8.88 | 42.32 ▲0.05 |
Compassionate Comments /wp-admin/options-general.php?page=compassionate-comments | 987 | 7.23 | 89.78 | 30.55 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Compassionate_Comments\\Front_End\\add_action() in wp-content/plugins/compassionate-comments/front-end/front-end.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function Compassionate_Comments\\Admin\\add_action() in wp-content/plugins/compassionate-comments/admin/admin.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: moderation, abuse, bullying, toxic, comments
compassionate-comments/bootstrap.php 92% from 13 tests
The main PHP file in "Compassionate Comments" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("compassionate-comments.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected982 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 128 | 298 | 590 |
PHP | 6 | 87 | 136 | 306 |
CSS | 2 | 20 | 17 | 84 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 4 | |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin