Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼8.40ms] Passed 4 tests
This is a short check of server-side resources used by Reported Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 27.91 ▼9.94 |
Dashboard /wp-admin | 3.59 ▲0.28 | 48.74 ▼1.18 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 51.83 ▲8.13 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 80.57 ▼24.04 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 35.00 ▲1.56 |
Reports /wp-admin/edit-comments.php?page=jamel_comment_reporter | 3.51 | 36.11 |
All Comments /wp-admin/edit-comments.php | 3.51 | 42.61 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
lbl_comment_reporter__basics |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reported Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲336 | 15.52 ▲0.87 | 6.53 ▲4.83 | 43.91 ▼0.64 |
Dashboard /wp-admin | 2,380 ▲195 | 6.65 ▲1.72 | 129.15 ▲25.55 | 41.19 ▼0.25 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.67 ▲1.65 | 51.69 ▲13.65 | 31.70 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 17.81 ▼0.26 | 642.73 ▲52.31 | 36.09 ▼31.29 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.35 ▲0.18 | 80.85 ▼13.89 | 41.66 ▲1.27 |
Reports /wp-admin/edit-comments.php?page=jamel_comment_reporter | 1,669 | 6.90 | 135.51 | 78.03 |
All Comments /wp-admin/edit-comments.php | 1,990 | 3.83 | 49.80 | 32.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- lbl_comment_reporter__basics
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'REPORTED_COMMENTS_DIRinc/class-messages.php' (include_path='.:/usr/share/php') in wp-content/plugins/reported-comments/inc/class-comment-report.php on line 4
- > PHP Warning
require_once(REPORTED_COMMENTS_DIRlib/wedevs_settings_api/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/reported-comments/inc/class-settings.php on line 4
- > PHP Warning
Use of undefined constant REPORTED_COMMENTS_DIR - assumed 'REPORTED_COMMENTS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/reported-comments/inc/class-comment-report.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/reported-comments/comment-reporter.php:18
- > PHP Fatal error
require_once(): Failed opening required 'REPORTED_COMMENTS_DIRlib/wedevs_settings_api/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/reported-comments/inc/class-settings.php on line 4
- > PHP Warning
require_once(REPORTED_COMMENTS_DIRinc/class-messages.php): failed to open stream: No such file or directory in wp-content/plugins/reported-comments/inc/class-comment-report.php on line 4
- > PHP Warning
Use of undefined constant REPORTED_COMMENTS_DIR - assumed 'REPORTED_COMMENTS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/reported-comments/inc/class-settings.php on line 4
- > PHP Fatal error
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 on the user side
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
2 plugin tags: report comments, flagging
reported-comments/comment-reporter.php 92% from 13 tests
The entry point to "Reported Comments" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("reported-comments.php" instead of "comment-reporter.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 detected872 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 206 | 313 | 792 |
JavaScript | 1 | 9 | 5 | 41 |
CSS | 1 | 5 | 1 | 39 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 28.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.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
PNG images were not found in this plugin