94% flux-to-posts

Code Review | FeedToPosts

WordPress plugin FeedToPosts scored 94% from 53 tests.

About plugin

  • Plugin page: flux-to-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.7-4.9.7
  • WordPress version: 5.8.1
  • First release: Jul 24, 2018
  • Latest release: Jul 26, 2018
  • Number of updates: 24
  • Update frequency: every 0.3 days
  • Top authors: natinho68 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 344 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.56MB] [CPU: ▼290.77ms] Passed 4 tests

A check of server-side resources used by FeedToPosts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1733.00 ▲9.29
Dashboard /wp-admin3.12 ▲0.0746.01 ▲4.96
Posts /wp-admin/edit.php3.23 ▲0.1246.72 ▲5.05
Add New Post /wp-admin/post-new.php2.96 ▼2.4723.48 ▼1,158.56
Media Library /wp-admin/upload.php3.06 ▲0.0525.63 ▼14.51

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for FeedToPosts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,857 ▲27516.07 ▲0.247.63 ▲0.4147.72 ▲0.35
Dashboard /wp-admin3,114 ▲2645.92 ▲0.11134.62 ▲0.86103.03 ▲7.56
Posts /wp-admin/edit.php2,865 ▲1592.70 ▲0.0164.19 ▲0.3993.73 ▼0.54
Add New Post /wp-admin/post-new.php1,666 ▼18718.80 ▼0.35367.50 ▼5.47100.17 ▼14.88
Media Library /wp-admin/upload.php1,931 ▲1595.02 ▲0.03147.18 ▼0.11108.78 ▼10.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/flux-to-posts/admin/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flux-to-posts/admin/FeedToPosts_Notices.php:9

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

flux-to-posts/FeedToPosts.php 92% from 13 tests

This is the main PHP file of "FeedToPosts" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("flux-to-posts.php" instead of "FeedToPosts.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
No dangerous file extensions were detected366 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.80
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods842.11%
▷ Public methods1473.68%
▷ Protected methods00.00%
▷ Private methods526.32%
▷ Named functions480.00%
▷ Anonymous functions120.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin