84% http-syndication

Code Review | http-syndication

WordPress plugin http-syndication scored84%from 54 tests.

About plugin

  • Plugin page: http-syndication
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Oct 25, 2023
  • Number of updates: 27
  • Update frequency: every 124.4 days
  • Top authors: vthierry (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,207 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.53ms] Passed 4 tests

Server-side resources used by http-syndication
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.40 ▼1.67
Dashboard /wp-admin3.38 ▲0.0846.57 ▼1.90
Posts /wp-admin/edit.php3.49 ▲0.1444.97 ▲3.87
Add New Post /wp-admin/post-new.php5.96 ▲0.0883.62 ▼11.32
Media Library /wp-admin/upload.php3.30 ▲0.0831.20 ▼3.24

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

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

Browser metrics Passed 4 tests

http-syndication: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.231.71 ▲0.0641.96 ▼1.65
Dashboard /wp-admin2,198 ▲275.62 ▲0.0894.68 ▲5.4641.73 ▲4.71
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0433.26 ▼7.7232.59 ▼6.52
Add New Post /wp-admin/post-new.php1,526 ▼1123.16 ▲5.10586.04 ▼23.5250.14 ▼14.52
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0394.59 ▼3.2639.05 ▼2.32

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      file_get_contents(): Filename cannot be empty in wp-content/plugins/http-syndication/wrap.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/http-syndication/wrap.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/http-syndication/http_syndication.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === http-syndication === )
Please take inspiration from this readme.txt

http-syndication/http_syndication.php 92% from 13 tests

The principal PHP file in "http-syndication" v. 1.8 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("http-syndication.php" instead of "http_syndication.php")

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
Success! There were no dangerous files found in this plugin343 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31389343

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity45.00
▷ Minimum class complexity17.00
▷ Maximum class complexity73.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods315.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected