78% gathercontent-import

Code Review | GatherContent Plugin

WordPress plugin GatherContent Plugin scored78%from 54 tests.

About plugin

  • Plugin page: gathercontent-import
  • Plugin version: 3.2.19
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 25, 2013
  • Latest release: Oct 17, 2023
  • Number of updates: 183
  • Update frequency: every 20.1 days
  • Top authors: Mathew Chapman (57.38%)jtsternberg (30.05%)Mark Young (12.57%)JustinSainton (1.64%)

Code review

54 tests

User reviews

7 reviews

Install metrics

500+ active /43,821 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.93MB] [CPU: ▼1.52ms] Passed 4 tests

Server-side resources used by GatherContent Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4640.49 ▲0.02
Dashboard /wp-admin4.45 ▲1.1051.29 ▼6.07
Posts /wp-admin/edit.php4.50 ▲1.1454.39 ▲4.97
Add New Post /wp-admin/post-new.php6.97 ▲1.0898.70 ▼5.01
Media Library /wp-admin/upload.php4.31 ▲1.0843.84 ▲9.57
GatherContent /wp-admin/admin.php?page=gathercontent-import4.3039.68
Support /wp-admin/admin.php?page=gathercontent-import-support4.60443.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
gathercontent_version
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for GatherContent Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲4814.31 ▼0.061.68 ▼0.1042.11 ▲0.28
Dashboard /wp-admin2,228 ▲485.60 ▲0.0284.42 ▼2.9871.00 ▲30.30
Posts /wp-admin/edit.php2,151 ▲512.01 ▲0.0137.15 ▼3.4734.61 ▼1.81
Add New Post /wp-admin/post-new.php1,576 ▲21018.55 ▲1.84631.40 ▲75.9250.79 ▼1.25
Media Library /wp-admin/upload.php1,442 ▲454.11 ▼0.1397.97 ▼4.7568.28 ▲21.69
GatherContent /wp-admin/admin.php?page=gathercontent-import9132.0023.7826.90
Support /wp-admin/admin.php?page=gathercontent-import-support8702.1324.5828.76

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • gathercontent_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-tab-wrapper.php
    • > /wp-content/plugins/gathercontent-import/includes/views/underscore-data-status.php
    • > /wp-content/plugins/gathercontent-import/includes/views/underscore-data-mapping-name.php
    • > /wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-select2-item.php
  • 86× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gathercontent-import/includes/views/user-profile.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GatherContent\\Importer\\Admin\\Post_Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/bulk.php:20
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gathercontent-import/includes/views/gc-post-column-row.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gathercontent-import/includes/views/existing-mapping-notice.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/tests/src/MimeTypesTest.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/gathercontent-import/vendor/ralouphie/mimey/tests/bootstrap.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'GatherContent\\Importer\\Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/mapping/base.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/gathercontent-import/includes/views/tmpl-gc-metabox-statuses.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'GatherContent\\Importer\\Base' not found in wp-content/plugins/gathercontent-import/includes/classes/admin/mapping/field-types/base.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GatherContent\\Importer\\Views\\Form_Element' not found in wp-content/plugins/gathercontent-import/includes/classes/views/input.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
Please take inspiration from this readme.txt

gathercontent-import/gathercontent-importer.php 92% from 13 tests

"GatherContent Plugin" version 3.2.19's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gathercontent-import.php" instead of "gathercontent-importer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin27,033 lines of code in 141 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102,3905,02216,740
JavaScript142,2198188,858
CSS413612797
Markdown41520356
JSON300172
SVG20257
XML24032
YAML25021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.42
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces13
Interfaces2
Traits0
Classes65
▷ Abstract classes1116.92%
▷ Concrete classes5483.08%
▷ Final classes00.00%
Methods601
▷ Static methods538.82%
▷ Public methods46477.20%
▷ Protected methods13121.80%
▷ Private methods61.00%
Functions56
▷ Named functions2748.21%
▷ Anonymous functions2951.79%
Constants21
▷ Global constants733.33%
▷ Class constants1466.67%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin