Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼295.92ms] Passed 4 tests
Analyzing server-side resources used by Admin Edit Comment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 55.87 ▼0.78 |
Dashboard /wp-admin | 3.45 ▲0.05 | 37.39 ▲1.97 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 40.05 ▼1.94 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 95.48 ▼1,182.94 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 53.01 ▲21.00 |
Admin Edit Comment /wp-admin/options-general.php?page=admin-edit-comment | 3.30 | 23.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Admin Edit Comment: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲56 | 16.22 ▲0.53 | 5.74 ▼0.67 | 2.78 ▲0.28 |
Dashboard /wp-admin | 2,897 ▲39 | 6.03 ▼0.14 | 122.52 ▼9.06 | 163.31 ▼17.19 |
Posts /wp-admin/edit.php | 2,706 ▲12 | 3.06 ▼0.17 | 90.48 ▲26.11 | 140.52 ▼8.17 |
Add New Post /wp-admin/post-new.php | 1,844 ▲155 | 21.57 ▲0.94 | 419.63 ▼32.31 | 178.97 ▲19.85 |
Media Library /wp-admin/upload.php | 1,706 ▲11 | 5.49 ▼0.04 | 139.19 ▼17.10 | 186.92 ▼6.20 |
Admin Edit Comment /wp-admin/options-general.php?page=admin-edit-comment | 1,056 | 2.36 | 54.89 | 183.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-edit-comment/admin/admin.php:94
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: editor, wp10, admin, comment, pressman...
admin-edit-comment/admin-edit-comment.php Passed 13 tests
The main PHP script in "Admin Edit Comment" version 2.0.1 is automatically included on every request by WordPress
89 characters long description:
Adding an extra comment functionality in post screen exclusively for your editorial team.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin816 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 80 | 163 | 430 |
CSS | 1 | 13 | 5 | 189 |
JavaScript | 1 | 17 | 21 | 131 |
PO File | 1 | 25 | 27 | 66 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin