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.01MB] [CPU: ▲0.54ms] Passed 4 tests
This is a short check of server-side resources used by Disable Feeds and Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.92 ▲1.82 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.94 ▲1.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.16 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.02 ▼1.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.36 ▲4.67 |
Disable RSS Feeds and Comments /wp-admin/options-general.php?page=disable-rss-feeds-and-comments | 3.21 | 29.87 |
Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Disable Feeds and 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,804 ▲58 | 13.16 ▼1.27 | 1.67 ▼0.20 | 38.87 ▼5.04 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.15 | 109.27 ▲10.53 | 42.20 ▼2.78 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 38.82 ▼0.44 | 34.51 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,517 ▼19 | 17.64 ▼5.43 | 641.48 ▲40.41 | 53.08 ▼6.86 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.00 | 95.26 ▲0.27 | 42.28 ▼0.81 |
Disable RSS Feeds and Comments /wp-admin/options-general.php?page=disable-rss-feeds-and-comments | 781 | 2.03 | 27.46 | 28.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-rss-feeds-and-comments/disable-comments-and-rss-feeds.php:110
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: disable post comments, disable comments on page, disable comments on pages, disable rss feeds, disable comments on post...
disable-rss-feeds-and-comments/disable-comments-and-rss-feeds.php 92% from 13 tests
The principal PHP file in "Disable Feeds and Comments" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-rss-feeds-and-comments.php" instead of "disable-comments-and-rss-feeds.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin101 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 6 | 101 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin