78% customizable-xml-feeds

Code Review | Customizable XML Feeds

WordPress plugin Customizable XML Feeds scored 78% from 54 tests.

About plugin

  • Plugin page: customizable-xml-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 27, 2015
  • Latest release: Jul 27, 2015
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: chriswgerber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,930 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.25ms] Passed 4 tests

Analyzing server-side resources used by Customizable XML Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1350.32 ▲10.33
Dashboard /wp-admin3.44 ▲0.1451.19 ▲5.37
Posts /wp-admin/edit.php3.56 ▲0.2045.65 ▲0.65
Add New Post /wp-admin/post-new.php6.03 ▲0.1493.75 ▼8.44
Media Library /wp-admin/upload.php3.37 ▲0.1435.25 ▲1.42
Custom XML Feeds /wp-admin/options-general.php?page=customizable-xml-feeds3.3341.25
Email Tags /wp-admin/edit-tags.php?taxonomy=email-tags3.3632.96

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Customizable XML Feeds
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.74 ▲0.361.96 ▲0.2843.50 ▲0.01
Dashboard /wp-admin2,219 ▲284.80 ▼0.11107.71 ▲6.4943.21 ▲2.28
Posts /wp-admin/edit.php2,144 ▲552.01 ▲0.0134.73 ▲1.2933.56 ▼1.91
Add New Post /wp-admin/post-new.php6,466 ▲4,93220.00 ▼3.05894.69 ▲139.9659.20 ▲2.44
Media Library /wp-admin/upload.php1,398 ▲104.19 ▼0.0594.91 ▼13.1142.76 ▼5.24
Custom XML Feeds /wp-admin/options-general.php?page=customizable-xml-feeds8102.0324.7625.49
Email Tags /wp-admin/edit-tags.php?taxonomy=email-tags1,2412.1326.8129.86

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/customizable-xml-feeds/templates/feed-footer.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomXMLFeeds\\add_action() in wp-content/plugins/customizable-xml-feeds/plugin.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customizable-xml-feeds/templates/feed-header.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'CustomXMLFeeds\\Form' not found in wp-content/plugins/customizable-xml-feeds/includes/admin/Form.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_title_rss() in wp-content/plugins/customizable-xml-feeds/templates/item-template.php:9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: feed, xml, custom xml feed, exact target

customizable-xml-feeds/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Customizable XML Feeds" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("customizable-xml-feeds.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin734 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11156638639
Markdown128067
Sass12016
CSS21012

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.17
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods4584.91%
▷ Protected methods815.09%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin