Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.55ms] Passed 4 tests
Analyzing server-side resources used by Delete All Pending Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.56 ▼5.85 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.23 ▼9.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 51.64 ▲2.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.15 ▼20.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.34 ▲1.50 |
All Comments /wp-admin/edit-comments.php | 3.31 | 39.40 |
Pending Comments /wp-admin/edit-comments.php?page=delete-all-pending-comments | 3.24 | 30.67 |
Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Delete All Pending Comments: 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 / | 2,819 ▲84 | 13.75 ▼0.51 | 1.72 ▼0.15 | 40.19 ▼2.32 |
Dashboard /wp-admin | 2,225 ▲36 | 4.89 ▼0.07 | 110.67 ▼6.65 | 37.25 ▼10.74 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.98 ▼0.04 | 39.47 ▲0.28 | 34.97 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 23.09 ▲4.85 | 620.13 ▲14.12 | 49.68 ▼0.50 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.22 ▲0.01 | 96.71 ▼0.76 | 41.80 ▼0.09 |
All Comments /wp-admin/edit-comments.php | 1,814 | 2.30 | 39.39 | 33.82 |
Pending Comments /wp-admin/edit-comments.php?page=delete-all-pending-comments | 780 | 2.03 | 23.76 | 24.72 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit-comments.php?page=delete-all-pending-comments
- > Notice in wp-content/plugins/delete-all-pending-comments/dapc.php+40
Undefined index: _wpnonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=delete-all-pending-comments
- > Notice in wp-content/plugins/delete-all-pending-comments/dapc.php+49
Undefined index: dapc
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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 plugin_dir_url() in wp-content/plugins/delete-all-pending-comments/dapc.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
delete-all-pending-comments/dapc.php 92% from 13 tests
The main PHP file in "Delete All Pending Comments" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("delete-all-pending-comments.php" instead of "dapc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin79 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 8 | 76 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected