10% tabletize-json-connector

Code Review | Feed JSON

WordPress plugin Feed JSON scored 10% from 54 tests.

About plugin

  • Plugin page: tabletize-json-co...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: appfactory (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,280 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/tabletize-json-connector/feed-json.php+82
    Uncaught Error: Using $this when not in object context in wp-content/plugins/tabletize-json-connector/feed-json.php:82
    Stack trace:
    #0 wp-content/plugins/tabletize-json-connector/feed-json.php(59): feed_json::add_feed_json()
    #1 wp-includes/class-wp-hook.php(310): feed_json->add_feed_json_once()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.14ms] Passed 4 tests

An overview of server-side resources used by Feed JSON
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.19 ▼1.93
Dashboard /wp-admin3.31 ▲0.0044.43 ▼7.99
Posts /wp-admin/edit.php3.36 ▲0.0046.45 ▼5.58
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.41 ▼5.04
Media Library /wp-admin/upload.php3.23 ▲0.0032.82 ▼1.25

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Feed JSON
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.165.48 ▲3.7843.59 ▼5.84
Dashboard /wp-admin2,209 ▲245.85 ▲0.83104.85 ▼16.3941.62 ▼8.96
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.55 ▲3.4135.83 ▼0.29
Add New Post /wp-admin/post-new.php1,528 ▼523.35 ▼0.26623.30 ▼60.8251.02 ▼5.98
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0393.66 ▼4.1942.55 ▼0.31

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tabletize-json-connector/template/feed-json.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tabletize-json-connector/feed-json.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: feeds, jsonp, json, feed, tabletize

tabletize-json-connector/feed-json.php 92% from 13 tests

Analyzing the main PHP file in "Feed JSON" version 1.0.0
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tabletize-json-connector.php" instead of "feed-json.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2283099

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin