Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.35ms] Passed 4 tests
An overview of server-side resources used by Comment Link Moderation Whitelist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.64 ▼6.35 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.11 ▼0.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.75 ▼5.89 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.15 ▲6.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.54 ▲3.55 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment Link Moderation Whitelist
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.13 | 1.57 ▼0.10 | 37.17 ▼3.95 |
Dashboard /wp-admin | 2,203 ▲12 | 5.77 ▼0.13 | 97.72 ▼1.81 | 39.79 ▼1.77 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.08 | 36.41 ▼1.68 | 36.70 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.02 ▼0.05 | 642.99 ▼53.88 | 54.85 ▲2.92 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.02 | 94.47 ▼17.33 | 41.76 ▼6.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/comment-link-moderation-whitelist/tests/bootstrap.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/comment-link-moderation-whitelist/tests/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/comment-link-moderation-whitelist/tests/bootstrap.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
4 plugin tags: coffee2code, comment, comment_max_links, moderation
comment-link-moderation-whitelist/comment-link-moderation-whitelist.php Passed 13 tests
The entry point to "Comment Link Moderation Whitelist" version 1.1.3 is a PHP file that has certain tags in its header comment area
98 characters long description:
Allows for whitelisted URLs to not count against the comment moderation max number of links limit.
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
Good job! No executable or dangerous file extensions detected304 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 100 | 136 | 230 |
Markdown | 2 | 20 | 0 | 39 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 28 | |
▷ Static methods | 6 | 21.43% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin