83% restful-syndication

Code Review | RESTful Content Syndication

WordPress plugin RESTful Content Syndication scored 83% from 54 tests.

About plugin

  • Plugin page: restful-syndication
  • Plugin version: 1.4.1
  • PHP compatiblity: 7.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.5-6.2
  • WordPress version: 6.3.1
  • First release: Jul 7, 2018
  • Latest release: May 17, 2023
  • Number of updates: 20
  • Update frequency: every 88.8 days
  • Top authors: anthonyeden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 2,577 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼14.94ms] Passed 4 tests

Analyzing server-side resources used by RESTful Content Syndication
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.46 ▼5.93
Dashboard /wp-admin3.34 ▲0.0447.80 ▼2.24
Posts /wp-admin/edit.php3.39 ▲0.0450.76 ▲5.26
Add New Post /wp-admin/post-new.php3.23 ▼2.6639.12 ▼56.83
Media Library /wp-admin/upload.php3.27 ▲0.0437.09 ▲5.43
RESTful Syndication /wp-admin/options-general.php?page=restful-syndication3.2433.52

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by RESTful Content Syndication
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.17 ▼1.231.85 ▲0.0037.71 ▼14.19
Dashboard /wp-admin2,213 ▲224.87 ▼1.0397.18 ▼20.2839.06 ▼5.66
Posts /wp-admin/edit.php2,096 ▲72.00 ▲0.0039.03 ▲3.9936.13 ▲2.00
Add New Post /wp-admin/post-new.php1,536 ▲323.52 ▲0.29658.70 ▲39.2257.70 ▼8.60
Media Library /wp-admin/upload.php1,395 ▲134.18 ▼0.0297.68 ▼1.3741.96 ▼1.95
RESTful Syndication /wp-admin/options-general.php?page=restful-syndication9662.0321.7532.74

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
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restful-syndication/index.php:105

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === restful-syndication === )
  • Screenshots: A description for screenshot #1 is required in restful-syndication/assets to your readme.txt
The official readme.txt might help

restful-syndication/index.php 92% from 13 tests

"RESTful Content Syndication" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("restful-syndication.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected769 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1213115769

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity166.00
▷ Minimum class complexity166.00
▷ Maximum class complexity166.00
Average method complexity9.68
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1050.00%
▷ Protected methods00.00%
▷ Private methods1050.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin