71% brandpoint-feed-importer

Code Review | Brandpoint Feed Importer

WordPress plugin Brandpoint Feed Importer scored 71% from 54 tests.

About plugin

  • Plugin page: brandpoint-feed-i...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Feb 13, 2015
  • Latest release: Feb 13, 2015
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: brandpoint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 834 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲0.03ms] Passed 4 tests

Analyzing server-side resources used by Brandpoint Feed Importer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.21 ▼6.41
Dashboard /wp-admin3.35 ▲0.0542.71 ▼5.98
Posts /wp-admin/edit.php3.40 ▲0.0548.94 ▲3.42
Add New Post /wp-admin/post-new.php5.95 ▲0.0798.19 ▲9.10
Media Library /wp-admin/upload.php3.28 ▲0.0548.92 ▲14.33
Brandpoint Feed Importer /wp-admin/options-general.php?page=bptfeedimporter3.2228.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Brandpoint Feed Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.42 ▼0.961.76 ▼0.2137.67 ▼8.90
Dashboard /wp-admin2,217 ▲435.11 ▼0.8098.33 ▼7.0540.82 ▼4.37
Posts /wp-admin/edit.php2,100 ▲82.26 ▲0.2540.79 ▼0.5237.58 ▲3.16
Add New Post /wp-admin/post-new.php1,677 ▲14422.54 ▼1.00603.56 ▼44.7148.90 ▼13.69
Media Library /wp-admin/upload.php1,402 ▲114.28 ▲0.0696.31 ▼3.4044.04 ▲1.24
Brandpoint Feed Importer /wp-admin/options-general.php?page=bptfeedimporter9281.9326.4325.63

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > Notice in wp-content/plugins/brandpoint-feed-importer/BrandpointFeedImport.php+203
    Undefined variable: bptOptions
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > Warning in wp-content/plugins/brandpoint-feed-importer/BrandpointFeedImport.php+53
    count(): Parameter must be an array or an object that implements Countable
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > Notice in wp-content/plugins/brandpoint-feed-importer/BrandpointFeedImport.php+203
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > Notice in wp-content/plugins/brandpoint-feed-importer/BrandpointFeedImport.php+185
    date_default_timezone_set(): Timezone ID '' is invalid

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brandpoint-feed-importer/BrandpointFeedImport.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=bptfeedimporter
    • > Network (severe)
    wp-content/plugins/brandpoint-feed-importer/css/bptfi_style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: A description for screenshot #0 is missing in brandpoint-feed-importer/assets to your readme.txt
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === brandpoint-feed-importer === )
  • Screenshots: Screenshot #1 (Plugin control panel) image required
You can take inspiration from this readme.txt

brandpoint-feed-importer/BrandpointFeedImport.php 85% from 13 tests

The main PHP script in "Brandpoint Feed Importer" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("brandpoint-feed-importer.php" instead of "BrandpointFeedImport.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin372 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13844369
JavaScript1052
CSS1041

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected