74% wp-feed

Code Review | WP Feed Plugin

WordPress plugin WP Feed Plugin scored 74% from 54 tests.

About plugin

  • Plugin page: wp-feed
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 21, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: Muneeb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,782 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.91MB] [CPU: ▼35.60ms] Passed 4 tests

Analyzing server-side resources used by WP Feed Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.31 ▼6.37
Dashboard /wp-admin3.03 ▼0.2724.28 ▼26.65
Posts /wp-admin/edit.php3.03 ▼0.3325.33 ▼25.16
Add New Post /wp-admin/post-new.php3.03 ▼2.8622.82 ▼77.36
Media Library /wp-admin/upload.php3.03 ▼0.2022.84 ▼13.21

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

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

Browser metrics Passed 4 tests

WP Feed Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.12 ▼1.251.67 ▼0.2140.04 ▼4.05
Dashboard /wp-admin2,215 ▲275.85 ▼0.1694.95 ▼20.1639.74 ▼8.65
Posts /wp-admin/edit.php2,101 ▲152.01 ▼0.0734.04 ▼2.6335.45 ▼3.67
Add New Post /wp-admin/post-new.php1,555 ▲1323.08 ▲4.99629.58 ▼4.1151.98 ▼11.87
Media Library /wp-admin/upload.php1,403 ▲124.22 ▲0.0497.20 ▼1.2143.57 ▲0.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-feed/config.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-feed/wp-feed.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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 to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-feed/wp-feed.php Passed 13 tests

The main file in "WP Feed Plugin" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
118 characters long description:
Control what content will be seen by your feed readers. Send unique content to your feed readers by using this plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin146 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP58711146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
PNG images were not found in this plugin