78% custom-feeds

Code Review | Custom RSS Feeds by Envintus, LLC

WordPress plugin Custom RSS Feeds by Envintus, LLC scored78%from 54 tests.

About plugin

  • Plugin page: custom-feeds
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2014
  • Latest release: Aug 14, 2014
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: envintusllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /5,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.37ms] Passed 4 tests

An overview of server-side resources used by Custom RSS Feeds by Envintus, LLC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.66 ▼2.93
Dashboard /wp-admin3.31 ▲0.0144.33 ▼7.17
Posts /wp-admin/edit.php3.36 ▲0.0147.43 ▼0.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.92 ▼6.96
Media Library /wp-admin/upload.php3.23 ▲0.0034.88 ▲1.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Custom RSS Feeds by Envintus, LLC
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.221.69 ▼0.0637.29 ▼6.07
Dashboard /wp-admin2,213 ▲384.84 ▼0.1199.47 ▼26.6336.02 ▼14.26
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0438.47 ▲1.8736.84 ▲1.71
Add New Post /wp-admin/post-new.php1,536 ▲323.36 ▲0.18638.11 ▲5.3755.67 ▲5.16
Media Library /wp-admin/upload.php1,395 ▲134.25 ▼0.0894.43 ▼7.8640.39 ▼2.98
Custom Feeds /wp-admin/custom-feeds.php260.440.0814.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/custom-feeds/lib/options.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-feeds/custom-feeds.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/custom-feeds.php
    • > Network (severe)
    wp-admin/custom-feeds.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("N/A")
Please take inspiration from this readme.txt

custom-feeds/custom-feeds.php Passed 13 tests

The main PHP script in "Custom RSS Feeds by Envintus, LLC" version 1.0 is automatically included on every request by WordPress
52 characters long description:
Add custom RSS feeds to your WordPress installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35923193
Markdown16014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png33.41KB10.11KB▼ 69.74%
screenshot-2.png47.17KB14.84KB▼ 68.54%
screenshot-3.png38.97KB12.09KB▼ 68.97%
screenshot-1.png24.49KB7.58KB▼ 69.06%