68% podcast-importer-secondline

Code Review | Podcast Importer SecondLine

WordPress plugin Podcast Importer SecondLine scored68%from 54 tests.

About plugin

  • Plugin page: podcast-importer-...
  • Plugin version: 1.4.7
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Oct 24, 2023
  • Number of updates: 42
  • Update frequency: every 35.9 days
  • Top authors: secondlinethemes (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active /102,689 total downloads

Benchmarks

Plugin footprint 65% 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: ▲1.11MB] [CPU: ▲10.56ms] Passed 4 tests

Server-side resources used by Podcast Importer SecondLine
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.55 ▲1.0951.66 ▲11.78
Dashboard /wp-admin4.41 ▲1.1156.59 ▲10.39
Posts /wp-admin/edit.php4.53 ▲1.1760.71 ▲17.70
Add New Post /wp-admin/post-new.php7.02 ▲1.1492.84 ▲9.95
Media Library /wp-admin/upload.php4.34 ▲1.1150.10 ▲10.12
Add New /wp-admin/post-new.php?post_type=secondline_import4.5352.37
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.4961.79
Podcast Importer /wp-admin/tools.php?page=podcast-importer-secondline4.4751.88
Podcast Imports /wp-admin/edit.php?post_type=secondline_import4.3844.97

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 131 new files
Database: 4 new tables, 9 new options
New tables
wp_actionscheduler_groups
wp_actionscheduler_logs
wp_actionscheduler_actions
wp_actionscheduler_claims
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
schema-ActionScheduler_LoggerSchema
can_compress_scripts
schema-ActionScheduler_StoreSchema
db_upgraded
theysaidso_admin_options
action_scheduler_hybrid_store_demarkation

Browser metrics Passed 4 tests

A check of browser resources used by Podcast Importer SecondLine
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.35 ▲0.001.85 ▲0.3241.22 ▲2.68
Dashboard /wp-admin2,224 ▲435.54 ▼0.1687.18 ▼7.7038.54 ▲0.69
Posts /wp-admin/edit.php2,129 ▲322.02 ▲0.0040.84 ▲5.6036.23 ▲0.02
Add New Post /wp-admin/post-new.php1,547 ▲2123.50 ▲0.43648.36 ▼35.5352.58 ▼7.05
Media Library /wp-admin/upload.php1,429 ▲294.24 ▲0.0798.30 ▼18.2444.33 ▼6.08
Add New /wp-admin/post-new.php?post_type=secondline_import1,4482.5154.9449.04
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,2772.2129.5337.25
Podcast Importer /wp-admin/tools.php?page=podcast-importer-secondline1,3143.4241.2539.28
Podcast Imports /wp-admin/edit.php?post_type=secondline_import1,1172.0131.6429.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 4 tables
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_groups
    • wp_actionscheduler_claims
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • schema-ActionScheduler_StoreSchema
    • schema-ActionScheduler_LoggerSchema
    • theysaidso_admin_options
    • action_scheduler_hybrid_store_demarkation

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/podcast-importer-secondline/templates/_form-field.php
  • 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/podcast-importer-secondline/templates/tools.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/ActionScheduler_AdminView.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/schedules/ActionScheduler_IntervalSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\ActionMigrator' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/migration/DryRun_ActionMigrator.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/podcast-importer-secondline/lib/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

podcast-importer-secondline/podcast-importer-secondline.php Passed 13 tests

The primary PHP file in "Podcast Importer SecondLine" version 1.4.7 is used by WordPress to initiate all plugin functionality
73 characters long description:
A simple podcast import plugin with ongoing podcast feed import features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,606 lines of code in 122 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172,3275,7858,880
CSS1680335
JavaScript1651296
Markdown237090
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.02
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces8
Interfaces3
Traits0
Classes97
▷ Abstract classes1515.46%
▷ Concrete classes8284.54%
▷ Final classes00.00%
Methods712
▷ Static methods11616.29%
▷ Public methods53675.28%
▷ Protected methods13919.52%
▷ Private methods375.20%
Functions49
▷ Named functions3571.43%
▷ Anonymous functions1428.57%
Constants52
▷ Global constants1936.54%
▷ Class constants3363.46%
▷ Public constants33100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/loader-icon.png20.78KB11.52KB▼ 44.54%