77% feed-importer-micro-blog

Code Review | Feed Importer for Micro.blog

WordPress plugin Feed Importer for Micro.blog scored77%from 54 tests.

About plugin

  • Plugin page: feed-importer-mic...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.7
  • WordPress version: 6.3.1
  • First release: May 8, 2017
  • Latest release: Jul 9, 2018
  • Number of updates: 16
  • Update frequency: every 26.7 days
  • Top authors: michalet1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,411 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.53ms] Passed 4 tests

Server-side resources used by Feed Importer for Micro.blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.07 ▲2.46
Dashboard /wp-admin3.42 ▲0.1170.82 ▲18.78
Posts /wp-admin/edit.php3.46 ▲0.1154.22 ▲10.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.63 ▼8.67
Media Library /wp-admin/upload.php3.26 ▲0.0332.02 ▼1.93
Feed Importer for Micro.blog /wp-admin/options-general.php?page=rss_mb3.2728.57

Server storage [IO: ▲0.90MB] [DB: ▲0.07MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • You have illegally modified 1 file (0.04KB) outside of "wp-content/plugins/feed-importer-micro-blog/" and "wp-content/uploads/"
    • (new file) wp-content/rssmb-log/log.txt
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options
rss_mb_deleted_posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
rss_mb_feeds

Browser metrics Passed 4 tests

Checking browser requirements for Feed Importer for Micro.blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.67 ▼0.921.57 ▼0.2042.00 ▲0.87
Dashboard /wp-admin2,213 ▲255.87 ▲0.99105.90 ▼0.2737.05 ▼4.03
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0740.92 ▲4.5435.91 ▲3.29
Add New Post /wp-admin/post-new.php1,536 ▲323.11 ▼0.10654.80 ▲42.2053.74 ▲3.54
Media Library /wp-admin/upload.php1,395 ▲134.21 ▲0.0395.11 ▼1.1444.57 ▼1.61
Feed Importer for Micro.blog /wp-admin/options-general.php?page=rss_mb1,5122.0928.7060.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • rss_mb_deleted_posts

Smoke tests 50% 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
    • > GET request to /wp-admin/options-general.php?page=rss_mb
    • > Deprecated in wp-content/plugins/feed-importer-micro-blog/app/templates/feed-table.php+37
    join(): Passing glue string after array is deprecated. Swap the parameters

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/feed-importer-micro-blog/app/classes/helpers/class-rss-mb-featured-image.php on line 7
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/feed-importer-micro-blog/app/classes/helpers/class-rss-mb-featured-image.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feed-importer-micro-blog/app/templates/settings-table.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feed-importer-micro-blog/app/templates/feed-save-box.php:7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/feed-importer-micro-blog/app/classes/helpers/class-rss-mb-featured-image.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feed-importer-micro-blog/app/templates/stats-placeholder.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feed-importer-micro-blog/app/templates/feed-table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_category_by_ID() in wp-content/plugins/feed-importer-micro-blog/app/templates/feed-table-row.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'Rss_mb_stats' not found in wp-content/plugins/feed-importer-micro-blog/app/templates/stats.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/feed-importer-micro-blog/app/templates/admin-ui.php:4

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 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: rss-feed, rss, microblog, import, feeds...

feed-importer-micro-blog/index.php 77% from 13 tests

The main PHP file in "Feed Importer for Micro.blog" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("feed-importer-micro-blog.php" instead of "index.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Domain Path: The domain path folder was not found ("/lang/")

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 plugin3,425 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP256697702,347
SVG100399
CSS1331253
JavaScript32826247
PO File14482131
Markdown111048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity21.92
▷ Minimum class complexity2.00
▷ Maximum class complexity68.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods98
▷ Static methods11.02%
▷ Public methods7172.45%
▷ Protected methods22.04%
▷ Private methods2525.51%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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