Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.22ms] Passed 4 tests
Server-side resources used by Uncomment — Disable Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.65 ▼5.99 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.68 ▼3.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 40.89 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.91 ▼19.43 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 30.94 ▼3.07 |
All Comments /wp-admin/edit-comments.php | 3.05 | 21.25 |
Server storage [IO: ▲0.03MB] [DB: ▼0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uncomment — Disable Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,295 ▼476 | 14.27 ▼0.03 | 2.08 ▲0.01 | 44.71 ▼2.38 |
Dashboard /wp-admin | 1,704 ▼484 | 5.58 ▼0.30 | 95.22 ▼4.00 | 39.27 ▲2.68 |
Posts /wp-admin/edit.php | 1,925 ▼167 | 2.04 ▼0.00 | 33.79 ▼7.42 | 33.25 ▼4.05 |
Add New Post /wp-admin/post-new.php | 1,490 ▼38 | 23.10 ▲4.80 | 688.84 ▲66.96 | 59.10 ▲10.76 |
Media Library /wp-admin/upload.php | 1,350 ▼41 | 4.15 ▼0.13 | 97.54 ▼1.51 | 42.40 ▲1.22 |
All Comments /wp-admin/edit-comments.php | 28 | 0.44 | 0.09 | 3.46 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Uncomment\\Rewrites\\add_filter() in wp-content/plugins/uncomment/includes/rewrites.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Uncomment\\add_filter() in wp-content/plugins/uncomment/includes/core.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Uncomment\\Feeds\\add_filter() in wp-content/plugins/uncomment/includes/feeds.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Uncomment\\XMLRPC\\add_filter() in wp-content/plugins/uncomment/includes/xmlrpc.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Uncomment\\Admin\\add_action() in wp-content/plugins/uncomment/includes/admin.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit-comments.php
- > Network (severe)
wp-admin/edit-comments.php - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: spam comments, remove, comments, remove comments, disable...
uncomment/plugin.php 69% from 13 tests
The primary PHP file in "Uncomment — Disable Comments" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.6.0")
- Domain Path: The domain path folder does not exist ("/languages")
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.3.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("uncomment.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected402 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 135 | 310 | 367 |
JSON | 1 | 0 | 0 | 23 |
Markdown | 1 | 11 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 6 | |
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 | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
Constants | 3 | |
▷ Global constants | 3 | 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