Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/media-feed/lib/class-mediafeed.php+66
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.84ms] Passed 4 tests
An overview of server-side resources used by Media Feed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.07 ▼5.35 |
Dashboard /wp-admin | 3.49 ▲0.19 | 45.06 ▼3.18 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.80 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 82.16 ▼10.88 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 36.87 ▲0.06 |
Feed /wp-admin/upload.php?page=mediafeed-settings | 3.40 | 32.18 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
media_feed_options |
widget_mediafeedwidgetitem |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
media_feed_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Media Feed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.28 ▼0.29 | 1.68 ▼0.10 | 38.72 ▼6.30 |
Dashboard /wp-admin | 2,196 ▲15 | 5.59 ▼0.12 | 87.70 ▼12.47 | 38.20 ▼2.07 |
Posts /wp-admin/edit.php | 2,083 ▼17 | 2.10 ▲0.08 | 38.73 ▲1.57 | 36.64 ▼5.31 |
Add New Post /wp-admin/post-new.php | 6,196 ▲4,668 | 19.21 ▼3.98 | 951.70 ▲243.26 | 52.94 ▼1.25 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.03 | 94.65 ▼4.81 | 39.75 ▼2.11 |
Feed /wp-admin/upload.php?page=mediafeed-settings | 1,286 | 7.49 | 206.25 | 31.29 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_mediafeedwidgetitem
- widget_recent-comments
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/media-feed/lib/class-mediafeed.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-feed/lib/class-mediafeedadmin.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-feed/lib/class-mediafeedregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-feed/lib/class-mediafeedregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-feed/lib/class-mediafeedwidgetitem.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
3 plugin tags: media, feed, rss
media-feed/mediafeed.php 92% from 13 tests
The principal PHP file in "Media Feed" v. 2.08 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-feed.php" instead of "mediafeed.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
No dangerous file extensions were detected1,207 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 150 | 341 | 840 |
JavaScript | 5 | 28 | 4 | 279 |
JSON | 2 | 0 | 0 | 40 |
CSS | 2 | 0 | 0 | 29 |
Sass | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin