84% custom-simple-rss

Code Review | Custom Simple Rss

WordPress plugin Custom Simple Rss scored84%from 54 tests.

About plugin

  • Plugin page: custom-simple-rss
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jul 15, 2015
  • Latest release: Apr 5, 2021
  • Number of updates: 77
  • Update frequency: every 27.2 days
  • Top authors: danikoo (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active /41,983 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Custom Simple Rss
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.67 ▼1.26
Dashboard /wp-admin3.32 ▼0.0352.42 ▼10.01
Posts /wp-admin/edit.php3.37 ▲0.0148.84 ▲0.67
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.61 ▼8.24
Media Library /wp-admin/upload.php3.24 ▲0.0134.23 ▼1.54
Custom Simple Rss Plugin /wp-admin/options-general.php?page=custom-simple-rss-admin-options3.2735.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
custom_simple_rss_options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Simple Rss
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.21 ▼1.175.19 ▲3.3947.27 ▲4.78
Dashboard /wp-admin2,227 ▲365.88 ▼0.0097.03 ▼11.6942.50 ▼0.48
Posts /wp-admin/edit.php2,113 ▲242.04 ▲0.0734.08 ▼3.5136.17 ▼0.31
Add New Post /wp-admin/post-new.php1,534 ▲2017.37 ▼0.33697.53 ▲47.5452.24 ▼1.05
Media Library /wp-admin/upload.php1,409 ▲184.27 ▼0.03100.50 ▼4.0645.34 ▲1.53
Custom Simple Rss Plugin /wp-admin/options-general.php?page=custom-simple-rss-admin-options1,6932.0424.1034.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/custom-simple-rss/custom-simple-rss-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/custom-simple-rss/custom-simple-rss.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/custom-simple-rss/custom-simple-rss-examples.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function custom_simple_rss_admin_href() in wp-content/plugins/custom-simple-rss/custom-simple-rss-tutorial.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/custom-simple-rss/custom-simple-rss-defaults.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

custom-simple-rss/custom-simple-rss.php Passed 13 tests

The principal PHP file in "Custom Simple Rss" v. 2.1.3 is loaded by WordPress automatically on each request
74 characters long description:
A plugin to create a Custom Simple RSS Feed according to chosen parameters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,131 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5141112969
CSS1145147
JavaScript14015

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected