84% json-feeder

Code Review | JSON Feeder

WordPress plugin JSON Feeder scored84%from 54 tests.

About plugin

  • Plugin page: json-feeder
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.5
  • WordPress version: 6.3.1
  • First release: May 24, 2017
  • Latest release: Jun 1, 2017
  • Number of updates: 18
  • Update frequency: every 0.5 days
  • Top authors: signalfade (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.68ms] Passed 4 tests

Analyzing server-side resources used by JSON Feeder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.66 ▲7.38
Dashboard /wp-admin3.33 ▲0.0353.68 ▼1.38
Posts /wp-admin/edit.php3.38 ▲0.0346.93 ▼4.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.56 ▼24.52
Media Library /wp-admin/upload.php3.26 ▲0.0342.35 ▲3.97

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

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

Browser metrics Passed 4 tests

A check of browser resources used by JSON Feeder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.39 ▼1.162.12 ▲0.3242.01 ▲0.56
Dashboard /wp-admin2,209 ▲214.89 ▼0.99108.14 ▲0.4442.07 ▼4.29
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0236.41 ▼1.0437.93 ▲3.74
Add New Post /wp-admin/post-new.php1,514 ▼1917.71 ▼5.40680.00 ▼8.6857.85 ▼1.31
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.0595.82 ▼9.3348.76 ▲5.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix 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 add_action() in wp-content/plugins/json-feeder/json-feeder.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/json-feeder/template/json-feeder.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: feed, feeds, jsonfeed, json

json-feeder/json-feeder.php Passed 13 tests

The main PHP file in "JSON Feeder" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
140 characters long description:
Adds a new type of feed you can subscribe to. http://example.com/feed/json or http://example.com/?feed=json to anywhere you get a JSON form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected218 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24033218

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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