79% wp-syndicate

Code Review | WP Syndicate

WordPress plugin WP Syndicate scored79%from 54 tests.

About plugin

  • Plugin page: wp-syndicate
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.0
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Jun 22, 2022
  • Number of updates: 55
  • Update frequency: every 51.4 days
  • Top authors: horike (98.18%)wokamoto (3.64%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /6,712 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.24MB] [CPU: ▼4.86ms] Passed 4 tests

A check of server-side resources used by WP Syndicate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2641.35 ▲0.51
Dashboard /wp-admin3.56 ▲0.2146.55 ▼13.37
Posts /wp-admin/edit.php3.66 ▲0.3048.90 ▲1.03
Add New Post /wp-admin/post-new.php6.14 ▲0.2592.45 ▼7.59
Media Library /wp-admin/upload.php3.48 ▲0.2439.06 ▲5.20
WP Syndicate /wp-admin/options-general.php?page=wp_syndicate3.4232.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Syndicate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲7114.26 ▼0.111.72 ▼0.0038.61 ▼2.55
Dashboard /wp-admin2,260 ▲865.59 ▲0.0683.02 ▼3.4239.66 ▼0.70
Posts /wp-admin/edit.php2,162 ▲622.01 ▼0.0040.11 ▲3.9235.52 ▼1.50
Add New Post /wp-admin/post-new.php1,578 ▲4623.53 ▲0.42596.19 ▼35.4547.48 ▼3.59
Media Library /wp-admin/upload.php1,456 ▲534.20 ▲0.02101.21 ▲6.5445.56 ▲3.22
WP Syndicate /wp-admin/options-general.php?page=wp_syndicate8542.0024.3728.62

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_syndicate
    • > Notice in wp-content/plugins/wp-syndicate/modules/admin.php+48
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-syndicate/wp-syndicate.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-syndicate/modules/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-syndicate/modules/action.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-syndicate/modules/syndicate.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: feed, rss

wp-syndicate/wp-syndicate.php Passed 13 tests

"WP Syndicate" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
It is a plug-in that WP Syndicate takes in an RSS feed, it is possible to capture the content of other sites on the WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected912 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP615749839
PO File1313473

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity28.60
▷ Minimum class complexity3.00
▷ Maximum class complexity62.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods3892.68%
▷ Protected methods00.00%
▷ Private methods37.32%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin