84% force-textxml-as-mime-type-in-the-feed

Code Review | Force text/xml as MIME-type in the feed

WordPress plugin Force text/xml as MIME-type in the feed scored 84% from 54 tests.

About plugin

  • Plugin page: force-textxml-as-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 4, 2015
  • Latest release: Oct 4, 2015
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: sergiambel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 999 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: ▼3.31ms] Passed 4 tests

This is a short check of server-side resources used by Force text/xml as MIME-type in the feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.34 ▼5.07
Dashboard /wp-admin3.31 ▲0.0045.49 ▼1.44
Posts /wp-admin/edit.php3.36 ▲0.0045.62 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.71 ▼6.03
Media Library /wp-admin/upload.php3.23 ▲0.0035.98 ▲4.91

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Force text/xml as MIME-type in the feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.101.71 ▼0.1243.79 ▼3.84
Dashboard /wp-admin2,206 ▲184.89 ▼0.01109.04 ▲11.0341.42 ▼3.67
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0138.79 ▼2.7535.37 ▼1.41
Add New Post /wp-admin/post-new.php1,533 ▼923.26 ▲5.24638.28 ▲37.3647.37 ▼10.59
Media Library /wp-admin/upload.php1,379 ▼34.18 ▼0.0195.50 ▼4.3241.82 ▲0.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/force-textxml-as-mime-type-in-the-feed/aac.php
    • > /wp-content/plugins/force-textxml-as-mime-type-in-the-feed/inc/feed_filters.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: mime, xml, content-type, rss, feed

force-textxml-as-mime-type-in-the-feed/aac.php 85% from 13 tests

Analyzing the main PHP file in "Force text/xml as MIME-type in the feed" version 0.1
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("force-textxml-as-mime-type-in-the-feed.php" instead of "aac.php")
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)

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
Good job! No executable or dangerous file extensions detected9 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin