78% mediacore-ingest-fwp-addon

Code Review | Mediacore Ingest (FeedWordPress AddOn)

WordPress plugin Mediacore Ingest (FeedWordPress AddOn) scored 78% from 54 tests.

About plugin

  • Plugin page: mediacore-ingest-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Apr 4, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: mburtis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,256 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.33ms] Passed 4 tests

An overview of server-side resources used by Mediacore Ingest (FeedWordPress AddOn)
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.23 ▼3.25
Dashboard /wp-admin3.35 ▲0.0444.61 ▼5.62
Posts /wp-admin/edit.php3.40 ▲0.0447.93 ▲2.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.55 ▼2.90
Media Library /wp-admin/upload.php3.27 ▲0.0436.74 ▲2.89
Mediacore Ingest /wp-admin/options-general.php?page=fwp_mediacore_ingest3.2328.34

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Mediacore Ingest (FeedWordPress AddOn): an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.191.62 ▼0.1642.88 ▲1.93
Dashboard /wp-admin2,213 ▲254.83 ▼0.07101.56 ▼4.2237.97 ▼6.93
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0338.41 ▲5.2134.50 ▲1.09
Add New Post /wp-admin/post-new.php1,540 ▲2623.45 ▲5.87659.14 ▼67.7158.87 ▲3.43
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0797.40 ▲3.7343.38 ▼1.29
Mediacore Ingest /wp-admin/options-general.php?page=fwp_mediacore_ingest6991.536.6120.96

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=fwp_mediacore_ingest
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/mediacore-ingest-fwp-addon/templates/settings.php on line 12 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/mediacore-ingest-fwp-addon/templates/settings.php(12): do_settings_fields()
    #1 wp-content/plugins/mediacore-ingest-fwp-addon/settings.php(111): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): fwp_mediacore_ingest_settings->fwp_mediacore_ingest_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/mediacore-ingest-fwp-addon/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mediacore-ingest-fwp-addon/mediacore-ingest.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mediacore-ingest-fwp-addon === )
Please take inspiration from this readme.txt

mediacore-ingest-fwp-addon/mediacore-ingest.php 92% from 13 tests

The main file in "Mediacore Ingest (FeedWordPress AddOn)" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mediacore-ingest-fwp-addon.php" instead of "mediacore-ingest.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
Everything looks great! No dangerous files found in this plugin179 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34335179

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.27
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin