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.71MB] [CPU: ▲1.86ms] Passed 4 tests
Analyzing server-side resources used by Webmention
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 44.51 ▲1.89 |
Dashboard /wp-admin | 4.02 ▲0.72 | 50.63 ▲3.83 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 53.24 ▲8.11 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.76 | 88.83 ▼2.20 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 37.79 ▲3.92 |
Webmention /wp-admin/tools.php?page=webmention-tools | 3.86 | 34.49 |
Webmention /wp-admin/options-general.php?page=webmention | 3.97 | 39.43 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
webmention_db_version |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Webmention: 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,823 ▲61 | 14.34 ▲0.08 | 2.06 ▲0.27 | 43.08 ▼1.16 |
Dashboard /wp-admin | 2,206 ▲32 | 5.60 ▼0.01 | 97.09 ▲5.55 | 42.23 ▼0.86 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▼0.00 | 41.07 ▲0.63 | 34.82 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.32 ▲0.45 | 588.74 ▼80.83 | 58.54 ▲9.17 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.16 ▼0.12 | 103.32 ▼8.11 | 46.94 ▲2.21 |
Webmention /wp-admin/tools.php?page=webmention-tools | 818 | 2.01 | 25.96 | 28.47 |
Webmention /wp-admin/options-general.php?page=webmention | 1,634 | 5.65 | 59.23 | 35.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- webmention_db_version
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Webmention\\Handler\\Base' not found in wp-content/plugins/webmention/includes/Handler/class-meta.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Webmention\\add_filter() in wp-content/plugins/webmention/includes/debug.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/webmention/templates/webmention-tools.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/webmention/templates/webmention-comment-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_comments() in wp-content/plugins/webmention/templates/webmention-comments.php:2
- > PHP Fatal error
Uncaught Error: Class 'Webmention\\Handler\\Base' not found in wp-content/plugins/webmention/includes/Handler/class-jsonld.php:13
- > PHP Warning
Use of undefined constant WEEK_IN_SECONDS - assumed 'WEEK_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/webmention/webmention.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/webmention/templates/webmention-comment.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/webmention/includes/class-cli.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/webmention/templates/webmention-edit-comment-form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: linkback, webmention, pingback, response, comment...
webmention/webmention.php Passed 13 tests
"Webmention" version 5.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
38 characters long description:
Webmention support for WordPress posts
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
Success! There were no dangerous files found in this plugin8,937 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 953 | 2,917 | 5,353 |
JSON | 2 | 0 | 0 | 3,520 |
CSS | 1 | 8 | 0 | 40 |
Markdown | 2 | 13 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 35.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 291.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 1 | 4.55% |
Methods | 216 | |
▷ Static methods | 89 | 41.20% |
▷ Public methods | 178 | 82.41% |
▷ Protected methods | 32 | 14.81% |
▷ Private methods | 6 | 2.78% |
Functions | 69 | |
▷ Named functions | 67 | 97.10% |
▷ Anonymous functions | 2 | 2.90% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
There were not PNG files found in your plugin