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.45MB] [CPU: ▲0.31ms] Passed 4 tests
This is a short check of server-side resources used by Comment Edit Core - Comment and Review Editing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 44.61 ▲6.20 |
Dashboard /wp-admin | 3.80 ▲0.50 | 47.04 ▲2.81 |
Posts /wp-admin/edit.php | 3.86 ▲0.49 | 48.87 ▲3.03 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 81.81 ▼4.01 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.09 ▼0.60 |
Comment Edit Core /wp-admin/options-general.php?page=comment-edit-core | 3.66 | 33.51 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Comment Edit Core - Comment and Review Editing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.45 | 1.90 ▲0.24 | 42.84 ▼0.31 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▲0.01 | 88.14 ▼0.28 | 40.95 ▲1.51 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▼0.15 | 34.57 ▲0.19 | 31.60 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.94 ▼0.06 | 655.18 ▼47.94 | 54.51 ▲1.35 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.15 ▼0.03 | 95.53 ▼2.01 | 40.99 ▼3.97 |
Comment Edit Core /wp-admin/options-general.php?page=comment-edit-core | 1,077 | 2.14 | 25.04 | 30.87 |
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
The following items require your attention
- 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 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-comment-editing/index.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Support.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function DLXPlugins\\CommentEditLite\\add_action() in wp-content/plugins/simple-comment-editing/simple-comment-editing.php:867
- > PHP Fatal error
Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Settings.php:16
- > PHP Fatal error
Uncaught Error: Class 'DLXPlugins\\CommentEditLite\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/simple-comment-editing/includes/Admin/Tabs/Integrations.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: comment editing, woocommerce reviews, edit comments, comments
simple-comment-editing/index.php 92% from 13 tests
This is the main PHP file of "Comment Edit Core - Comment and Review Editing" version 3.0.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-comment-editing.php" instead of "index.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
No dangerous file extensions were detected8,058 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,263 | 855 | 4,264 |
PHP | 24 | 568 | 1,569 | 2,367 |
CSS | 4 | 135 | 21 | 746 |
PO File | 15 | 226 | 216 | 661 |
JSON | 16 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing 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 | 21.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 68 | 53.97% |
▷ Public methods | 120 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.76% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 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
5 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/comment-edit-base.png | 17.31KB | 7.61KB | ▼ 56.04% |
images/screenshot-theme-default.png | 26.77KB | 11.85KB | ▼ 55.74% |
images/screenshot-theme-dark.png | 25.77KB | 11.73KB | ▼ 54.49% |
images/screenshot-theme-light.png | 24.68KB | 11.82KB | ▼ 52.13% |
images/logo.png | 25.45KB | 11.59KB | ▼ 54.44% |