68% wp-custom-post-rss-feed

Code Review | WP Custom Post RSS Feed

WordPress plugin WP Custom Post RSS Feed scored68%from 54 tests.

About plugin

  • Plugin page: wp-custom-post-rs...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 23, 2015
  • Latest release: Aug 20, 2016
  • Number of updates: 5
  • Update frequency: every 66.4 days
  • Top authors: NetAttingo Technologies (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /5,343 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.24MB] [CPU: ▼42.66ms] Passed 4 tests

Server-side resources used by WP Custom Post RSS Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7315.66 ▼29.01
Dashboard /wp-admin2.77 ▼0.5316.59 ▼30.52
Posts /wp-admin/edit.php2.77 ▼0.5817.00 ▼26.04
Add New Post /wp-admin/post-new.php2.77 ▼3.1115.44 ▼85.07
Media Library /wp-admin/upload.php2.77 ▼0.4516.67 ▼20.17
Custom Post RSS Feeds /wp-admin/admin.php?page=wpcpf-settings-page2.7715.31
About Us /wp-admin/admin.php?page=wpcpf-about-us2.7716.84

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Custom Post RSS Feed: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.081.69 ▼0.0443.33 ▼3.92
Dashboard /wp-admin2,231 ▲404.85 ▼1.06113.60 ▲8.1142.25 ▲2.34
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0034.75 ▼6.6032.24 ▼2.45
Add New Post /wp-admin/post-new.php1,549 ▲2123.14 ▲4.67649.53 ▲33.5064.22 ▲2.93
Media Library /wp-admin/upload.php1,413 ▲284.21 ▲0.0095.34 ▼3.9741.38 ▼1.89
Custom Post RSS Feeds /wp-admin/admin.php?page=wpcpf-settings-page8992.0323.2628.30
About Us /wp-admin/admin.php?page=wpcpf-about-us8232.1923.6728.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpcpf-about-us
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
    • > GET request to /wp-admin/admin.php?page=wpcpf-settings-page
    • > Notice in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php+4
    Undefined index: wpcpf_setting_submit
    • > GET request to /wp-admin/admin.php?page=wpcpf-settings-page
    • > Notice in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php+6
    Undefined index: post_type_to_feed
    • > GET request to /wp-admin/admin.php?page=wpcpf-settings-page
    • > Notice in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php+7
    Undefined index: post_cont_in_feed
    • > GET request to /wp-admin/admin.php?page=wpcpf-settings-page
    • > Notice in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php+8
    Undefined index: saved
    • > GET request to /wp-admin/admin.php?page=wpcpf-settings-page
    • > Notice in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php+23
    Undefined variable: message

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-custom-post-rss-feed/wp-custom-post-rss-feed.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-settings-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-post-rss-feed/pages/custom-feed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-custom-post-rss-feed/pages/wpcpf-about-us.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Back end custom post RSS feed settings.), #2 (Front end XML feed view.)
The official readme.txt is a good inspiration

wp-custom-post-rss-feed/wp-custom-post-rss-feed.php Passed 13 tests

The main file in "WP Custom Post RSS Feed" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Plugin helps to generate xml feeds of post/page/custom post.

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 detected221 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44123178
CSS19243

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.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.49MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png43.29KB19.74KB▼ 54.40%
screenshot-2.png459.89KB132.96KB▼ 71.09%