62% feedpress-generator

Code Review | Feedpress Generator

WordPress plugin Feedpress Generator scored62%from 54 tests.

About plugin

  • Plugin page: feedpress-generator
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Dec 15, 2018
  • Latest release: Mar 18, 2022
  • Number of updates: 40
  • Update frequency: every 29.8 days
  • Top authors: spartac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,735 total downloads

Benchmarks

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

An overview of server-side resources used by Feedpress Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.79 ▲5.3250.79 ▲9.20
Dashboard /wp-admin8.81 ▲5.5051.32 ▲3.15
Posts /wp-admin/edit.php8.81 ▲5.4552.24 ▲5.59
Add New Post /wp-admin/post-new.php8.81 ▲2.9253.29 ▼46.48
Media Library /wp-admin/upload.php8.81 ▲5.5854.95 ▲15.77
Redux Framework /wp-admin/tools.php?page=redux-about8.8150.00
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8148.64

Server storage [IO: ▲10.20MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/feedpress-generator/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 1,051 new files
Database: no new tables, 14 new options
New WordPress options
widget_theysaidso_widget
redux_version_upgraded_from
fs_debug_mode
feedpress_generator_fwg_settings-transients
redux-framework-tracking
fs_accounts
fs_gdpr
db_upgraded
widget_recent-comments
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by Feedpress Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲7513.22 ▼1.371.72 ▼0.1430.98 ▼11.53
Dashboard /wp-admin2,261 ▲555.83 ▼0.05109.56 ▼0.2944.44 ▲3.94
Posts /wp-admin/edit.php2,144 ▲472.00 ▲0.0137.00 ▼1.1637.34 ▲0.68
Add New Post /wp-admin/post-new.php1,559 ▲14523.06 ▲5.14688.52 ▲42.0152.27 ▼0.82
Media Library /wp-admin/upload.php1,443 ▲434.32 ▲0.11102.48 ▲3.3945.54 ▼5.55
Redux Framework /wp-admin/tools.php?page=redux-about9912.1825.2455.88
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0621.7026.3327.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/feedpress-generator/includes/redux-framework/ReduxCore/inc/extensions/customizer/extension_customizer.php+366
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
  • Zombie WordPress options detected upon uninstall: 14 options
    • redux_version_upgraded_from
    • fs_active_plugins
    • can_compress_scripts
    • fs_accounts
    • fs_gdpr
    • feedpress_generator_fwg_settings
    • feedpress_generator_fwg_settings-transients
    • widget_recent-comments
    • widget_theysaidso_widget
    • redux-framework-tracking
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Warning in wp-content/plugins/feedpress-generator/includes/redux-framework/ReduxCore/inc/extensions/customizer/extension_customizer.php+450
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/feedpress-generator/includes/redux-framework/ReduxCore/inc/p.php
  • 195× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_ChildDef' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/ChildDef/Empty.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/AttrDef/HTML/ID.php:12
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/feedpress-generator/includes/redux-framework/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 450
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_Injector' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/Injector/PurifierLinkify.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_URIFilter' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/URIFilter/DisableExternal.php:3
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/feedpress-generator/includes/redux-framework/ReduxCore/extensions/customizer/extension_customizer.php on line 423
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_Filter' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/Filter/YouTube.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrDef_CSS_Number' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/AttrDef/CSS/AlphaValue.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_ChildDef' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/ChildDef/Required.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HTMLPurifier_AttrTransform' not found in wp-content/plugins/feedpress-generator/includes/htmlpurifier/HTMLPurifier/AttrTransform/BdoDir.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: rss to content, feed to post, feed press, rss to widget, generate widget...

feedpress-generator/feedpress-generator-widget-generator.php 92% from 13 tests

Analyzing the main PHP file in "Feedpress Generator" version 1.2.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("feedpress-generator.php" instead of "feedpress-generator-widget-generator.php")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin98,127 lines of code in 779 files:
LanguageFilesBlank linesComment linesLines of code
PHP46215,21334,45769,461
JavaScript1753,2832,54916,157
CSS769662474,621
Sass44487504,453
PO File24345551,004
SVG100934
LESS49479790
Markdown31020295
Bourne Shell55550177
XML310111
JSON20063
HTML18060
INI1111

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 232)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity30.86
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity232.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes378
▷ Abstract classes174.50%
▷ Concrete classes36195.50%
▷ Final classes10.28%
Methods2,730
▷ Static methods32912.05%
▷ Public methods1,95371.54%
▷ Protected methods31911.68%
▷ Private methods45816.78%
Functions126
▷ Named functions12196.03%
▷ Anonymous functions53.97%
Constants215
▷ Global constants11754.42%
▷ Class constants9845.58%
▷ Public constants98100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
45 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/feed-icon-14x14.png0.67KB0.70KB0.00%
includes/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
includes/redux-framework/sample/patterns/triangular.png0.21KB0.22KB0.00%
includes/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
includes/redux-framework/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%