Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.21ms] Passed 4 tests
This is a short check of server-side resources used by Delete Pending Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.43 ▼7.22 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.47 ▲1.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.26 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.26 ▼14.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.85 ▲2.83 |
All Comments /wp-admin/edit-comments.php | 3.31 | 36.77 |
Delete Pending Comments /wp-admin/edit-comments.php?page=delete-pending-comments | 3.27 | 30.97 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Delete Pending Comments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 14.46 ▼0.13 | 1.68 ▼0.29 | 41.57 ▼3.17 |
Dashboard /wp-admin | 2,226 ▲37 | 4.83 ▼0.06 | 114.38 ▲3.26 | 41.31 ▲1.22 |
Posts /wp-admin/edit.php | 2,109 ▲23 | 2.05 ▲0.04 | 36.67 ▼1.47 | 31.82 ▲1.73 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 23.22 ▲5.02 | 671.40 ▲64.38 | 55.18 ▼10.26 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.25 ▲0.07 | 96.55 ▼6.13 | 42.86 ▲0.64 |
All Comments /wp-admin/edit-comments.php | 1,809 | 2.28 | 35.57 | 32.66 |
Delete Pending Comments /wp-admin/edit-comments.php?page=delete-pending-comments | 771 | 2.05 | 24.74 | 23.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/delete-pending-comments/delete-pending-comments.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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: mass delete comments, comments, delete, spam, pending
delete-pending-comments/delete-pending-comments.php 85% from 13 tests
"Delete Pending Comments" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("translations/")
- Domain Path: Please prefix the domain path with a forward slash character ("/translations/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected165 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 28 | 98 |
PO File | 1 | 18 | 20 | 67 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 0 | |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin