68% posts-rss-feeds

Code Review | Posts RSS Feeds

WordPress plugin Posts RSS Feeds scored 68% from 54 tests.

About plugin

  • Plugin page: posts-rss-feeds
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 15, 2018
  • Latest release: Jan 15, 2018
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: cynob (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 551 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Posts RSS Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7312.67 ▼32.41
Dashboard /wp-admin2.77 ▼0.5415.07 ▼33.70
Posts /wp-admin/edit.php2.77 ▼0.5916.38 ▼33.01
Add New Post /wp-admin/post-new.php2.77 ▼3.1215.04 ▼87.04
Media Library /wp-admin/upload.php2.77 ▼0.4613.38 ▼20.69
Posts RSS Feeds /wp-admin/admin.php?page=cbprf-settings-page2.7715.04
About Us /wp-admin/admin.php?page=cbprf-about-us2.7716.32

Server storage [IO: ▲0.50MB] [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, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Posts RSS Feeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.41 ▼0.981.62 ▼0.3842.59 ▼1.53
Dashboard /wp-admin2,234 ▲465.90 ▲0.99107.79 ▼8.1641.99 ▼6.51
Posts /wp-admin/edit.php2,114 ▲252.05 ▲0.0039.66 ▲3.7538.38 ▲2.29
Add New Post /wp-admin/post-new.php1,535 ▲217.68 ▼5.34655.53 ▲5.7351.90 ▲1.00
Media Library /wp-admin/upload.php1,407 ▲224.23 ▼0.0396.26 ▼2.8841.26 ▼0.88
Posts RSS Feeds /wp-admin/admin.php?page=cbprf-settings-page8992.0324.0429.37
About Us /wp-admin/admin.php?page=cbprf-about-us8242.0323.8426.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > 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 were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cbprf-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=cbprf-settings-page
    • > Notice in wp-content/plugins/posts-rss-feeds/pages/cbprf-settings-page.php+6
    Undefined variable: cbprf_setting_submit
    • > GET request to /wp-admin/admin.php?page=cbprf-settings-page
    • > Notice in wp-content/plugins/posts-rss-feeds/pages/cbprf-settings-page.php+25
    Undefined variable: message
    • > GET request to /wp-admin/admin.php?page=cbprf-about-us
    • > Notice in wp-content/plugins/posts-rss-feeds/pages/cbprf-about-us.php+11
    Undefined variable: stored_class

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/posts-rss-feeds/pages/cbprf-about-us.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Back end custom post RSS feed settings.), #2 (Front end XML feed view.)
You can take inspiration from this readme.txt

posts-rss-feeds/cb-posts-rss-feeds.php 92% from 13 tests

Analyzing the main PHP file in "Posts RSS Feeds" version 1.0.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("posts-rss-feeds.php" instead of "cb-posts-rss-feeds.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
Everything looks great! No dangerous files found in this plugin223 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42924180
CSS19243

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%