Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.64ms] Passed 4 tests
An overview of server-side resources used by MF2 Feeds
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.79 ▼11.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.66 ▼3.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.72 ▼6.82 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.06 ▼21.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.16 ▼2.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MF2 Feeds
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.27 ▼0.08 | 1.63 ▼0.45 | 43.31 ▼5.60 |
Dashboard /wp-admin | 2,195 ▲25 | 5.63 ▲0.01 | 87.56 ▼9.76 | 41.48 ▲2.18 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.97 ▼0.05 | 34.17 ▼5.91 | 33.78 ▼4.63 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.05 ▼0.14 | 638.03 ▼56.39 | 72.75 ▲19.67 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.00 | 104.14 ▼4.29 | 44.46 ▼2.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mf2-feed/mf2-feed.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/mf2-feed/includes/feed-jf2.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/mf2-feed/includes/feed-mf2-comments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/mf2-feed/includes/feed-jf2-comments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/mf2-feed/includes/feed-mf2.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: microformats, indieweb, rel-alternate, mf2, jf2
mf2-feed/mf2-feed.php Passed 13 tests
"MF2 Feeds" version 3.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Adds a Microformats2 JSON feed for every entry
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
No dangerous file extensions were detected287 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 57 | 97 | 287 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 13 | |
▷ Static methods | 9 | 69.23% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
PNG images were not found in this plugin