90% wp-api-json-feed

Code Review | WP-API JSON Feed

WordPress plugin WP-API JSON Feed scored90%from 54 tests.

About plugin

  • Plugin page: wp-api-json-feed
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: May 22, 2017
  • Latest release: Oct 21, 2023
  • Number of updates: 6
  • Update frequency: every 390.5 days
  • Top authors: flixos90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,400 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.06MB] [CPU: ▼5.15ms] Passed 4 tests

This is a short check of server-side resources used by WP-API JSON Feed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.88 ▲0.41
Dashboard /wp-admin3.37 ▲0.0645.28 ▼5.99
Posts /wp-admin/edit.php3.42 ▲0.0644.01 ▼1.86
Add New Post /wp-admin/post-new.php6.03 ▲0.1583.01 ▼10.75
Media Library /wp-admin/upload.php3.29 ▲0.0633.76 ▼1.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP-API JSON Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▼0.451.69 ▲0.0639.51 ▼3.97
Dashboard /wp-admin2,195 ▲155.59 ▼0.1080.52 ▼14.3937.27 ▼4.66
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0234.76 ▲0.0333.07 ▼4.51
Add New Post /wp-admin/post-new.php1,534 ▼318.32 ▲0.09613.93 ▼40.5476.57 ▲16.68
Media Library /wp-admin/upload.php1,403 ▲34.28 ▲0.0493.96 ▼12.6642.28 ▼6.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: feed, rest api, json feed

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

"WP-API JSON Feed" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
101 characters long description:
Implements JSON feeds following the official JSON feed specification by using the WordPress REST API.

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
Everything looks great! No dangerous files found in this plugin655 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4122521655

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.67
▷ Minimum class complexity2.00
▷ Maximum class complexity49.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods1846.15%
▷ Protected methods2051.28%
▷ Private methods12.56%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin