72% custom-post-type-rss-feed

Code Review | Custom Post Type RSS feed

WordPress plugin Custom Post Type RSS feed scored72%from 54 tests.

About plugin

  • Plugin page: custom-post-type-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.2.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 21, 2011
  • Latest release: Dec 10, 2013
  • Number of updates: 59
  • Update frequency: every 13.8 days
  • Top authors: spacedmonkey (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /12,854 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.27ms] Passed 4 tests

An overview of server-side resources used by Custom Post Type RSS feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.71 ▲2.91
Dashboard /wp-admin3.35 ▲0.0554.64 ▲1.76
Posts /wp-admin/edit.php3.46 ▲0.1151.23 ▼3.53
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.71 ▼21.27
Media Library /wp-admin/upload.php3.27 ▲0.0532.90 ▼2.03
Custom Post Type RSS feed /wp-admin/options-general.php?page=custom-post-type-rss-feed3.2334.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Custom Post Type RSS feed: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.321.82 ▼0.0143.67 ▲2.24
Dashboard /wp-admin2,199 ▲255.64 ▲0.0793.35 ▲1.8942.32 ▲2.66
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0137.06 ▼11.8935.08 ▼4.37
Add New Post /wp-admin/post-new.php1,531 ▲323.26 ▲0.32690.66 ▲26.9652.67 ▼1.83
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.0197.50 ▼11.1744.30 ▼1.61
Custom Post Type RSS feed /wp-admin/options-general.php?page=custom-post-type-rss-feed7751.9923.6427.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% 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
    • > GET request to /wp-admin/options-general.php?page=custom-post-type-rss-feed
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=custom-post-type-rss-feed
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/custom-post-type-rss-feed/public/views/public.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/custom-post-type-rss-feed/admin/views/admin.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

custom-post-type-rss-feed/custom-post-type-rss-feed.php 85% from 13 tests

The principal PHP file in "Custom Post Type RSS feed" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.2.1")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 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 plugin262 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7110334197
Markdown131055
JavaScript28210
CSS2020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.00
▷ Minimum class complexity7.00
▷ Maximum class complexity13.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods735.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
4 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png22.65KB7.28KB▼ 67.85%
screenshot-1.png22.65KB7.28KB▼ 67.85%
assets/banner-772x250.png55.98KB17.18KB▼ 69.32%
assets/banner-1544x500.png145.77KB49.54KB▼ 66.01%