78% jsonfeed

Code Review | JSON Feed (jsonfeed.org)

WordPress plugin JSON Feed (jsonfeed.org) scored78%from 54 tests.

About plugin

  • Plugin page: jsonfeed
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Oct 29, 2023
  • Number of updates: 20
  • Update frequency: every 117.7 days
  • Top authors: mantonr (75%)dshanske (25%)Otto42 (10%)

Code review

54 tests

User reviews

5 reviews

Install metrics

2,000+ active /38,614 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.72ms] Passed 4 tests

Analyzing server-side resources used by JSON Feed (jsonfeed.org)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.09 ▼6.06
Dashboard /wp-admin3.31 ▲0.0147.69 ▼0.21
Posts /wp-admin/edit.php3.37 ▲0.0147.05 ▼0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.27 ▼16.50
Media Library /wp-admin/upload.php3.24 ▲0.0134.92 ▲0.77

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for JSON Feed (jsonfeed.org)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.34 ▲0.051.82 ▲0.1741.34 ▼3.64
Dashboard /wp-admin2,195 ▲185.56 ▼0.1187.72 ▼1.9339.08 ▲3.74
Posts /wp-admin/edit.php2,103 ▼22.01 ▲0.0150.98 ▲12.7635.79 ▲3.16
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.47646.96 ▼5.5160.32 ▲10.93
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0195.79 ▼14.9944.57 ▼2.06

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/jsonfeed/jsonfeed-wp.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/jsonfeed/feed-json.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_json_feed_data() in wp-content/plugins/jsonfeed/feed-json-comments.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: json, feeds, jsonfeed, feed

jsonfeed/jsonfeed-wp.php 92% from 13 tests

The entry point to "JSON Feed (jsonfeed.org)" version 1.4.5 is a PHP file that has certain tags in its header comment area
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 ("jsonfeed.php" instead of "jsonfeed-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin449 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP45154301
Markdown139062
JSON10050
SVG10119
XML12017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
jsonfeed.png3.97KB1.59KB▼ 60.05%