72% content-syndication-toolkit

Code Review | Content Syndication Toolkit

WordPress plugin Content Syndication Toolkit scored72%from 54 tests.

About plugin

  • Plugin page: content-syndicati...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Oct 19, 2017
  • Number of updates: 93
  • Update frequency: every 11.3 days
  • Top authors: ben.moody (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /4,890 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.43ms] Passed 4 tests

Analyzing server-side resources used by Content Syndication Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.54 ▼2.81
Dashboard /wp-admin3.50 ▲0.2056.47 ▲9.78
Posts /wp-admin/edit.php3.55 ▲0.2052.77 ▲1.38
Add New Post /wp-admin/post-new.php6.08 ▲0.20118.66 ▲22.45
Media Library /wp-admin/upload.php3.43 ▲0.2039.69 ▲1.38
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=prso_synd_toolkit3.4242.33
All Items /wp-admin/edit.php?post_type=prso_synd_toolkit3.4839.37
Add New /wp-admin/post-new.php?post_type=prso_synd_toolkit3.5755.18
Content Syndication /wp-admin/options-general.php?page=prso_synd_toolkit_options_options5.5766.46
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=prso_synd_toolkit3.4233.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 450 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
prso_synd_toolkit_options-transients
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
redux-framework-tracking
widget_theysaidso_widget
prso_synd_toolkit_options
category_children

Browser metrics Passed 4 tests

Checking browser requirements for Content Syndication Toolkit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11914.75 ▲0.101.66 ▲0.0140.52 ▼2.72
Dashboard /wp-admin2,254 ▲665.83 ▲0.73123.38 ▲20.1945.13 ▲2.25
Posts /wp-admin/edit.php2,142 ▲532.01 ▲0.0140.73 ▼2.0133.31 ▼1.24
Add New Post /wp-admin/post-new.php1,576 ▲5623.25 ▲0.03665.69 ▲8.4051.18 ▼8.78
Media Library /wp-admin/upload.php1,436 ▲454.34 ▲0.10103.16 ▼4.1143.14 ▼0.37
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=prso_synd_toolkit1,4972.3129.2331.99
All Items /wp-admin/edit.php?post_type=prso_synd_toolkit1,1661.9532.0829.68
Add New /wp-admin/post-new.php?post_type=prso_synd_toolkit2,4937.82173.6466.17
Content Syndication /wp-admin/options-general.php?page=prso_synd_toolkit_options_options1,3254.2685.78100.13
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=prso_synd_toolkit1,3612.3027.3830.05

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
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • prso_synd_toolkit_options-transients
    • widget_theysaidso_widget
    • widget_recent-posts
    • redux-framework-tracking
    • can_compress_scripts
    • theysaidso_admin_options
    • category_children
    • db_upgraded
    • prso_synd_toolkit_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 354 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=prso_synd_toolkit_options_options
    • > Notice in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/scssphp/src/Compiler.php+2077
    Trying to access array offset on value of type null

SRP 0% 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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/p.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/scssphp/src/Formatter/Compressed.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/fields/select/elusive-icons.php:312
    • > PHP Notice
      Undefined index: url in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/p.php on line 151
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _ex() in wp-content/plugins/content-syndication-toolkit/inc/templates/email/push_error_client_alert.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _ex() in wp-content/plugins/content-syndication-toolkit/inc/templates/email/push_error.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/scssphp/src/Formatter/Crunched.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/scssphp/src/Formatter/Compact.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/class.p.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Leafo\\ScssPhp\\Formatter' not found in wp-content/plugins/content-syndication-toolkit/inc/ReduxFramework/ReduxCore/inc/scssphp/src/Formatter/Nested.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/content-syndication-toolkit/prso-content-synd-toolkit.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
10 plugin tags: content syndication, content aggregator, content aggregation, content publishing, seo...

content-syndication-toolkit/prso-content-synd-toolkit.php 85% from 13 tests

"Content Syndication Toolkit" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("content-syndication-toolkit.php" instead of "prso-content-synd-toolkit.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis 97% from 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
There were no executable files found in this plugin42,210 lines of code in 356 files:
LanguageFilesBlank linesComment linesLines of code
PHP964,7966,41916,455
JavaScript1542,9782,25613,925
Sass32637374,547
LESS262801173,245
CSS413301662,919
PO File1223293544
SVG100309
Markdown134080
HTML18060
Bourne Shell124055
JSON10036
YAML10135

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity39.22
▷ Minimum class complexity1.00
▷ Maximum class complexity829.00
Average method complexity6.09
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes92
▷ Abstract classes11.09%
▷ Concrete classes9198.91%
▷ Final classes00.00%
Methods690
▷ Static methods415.94%
▷ Public methods41760.43%
▷ Protected methods23233.62%
▷ Private methods415.94%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
Constants12
▷ Global constants1191.67%
▷ Class constants18.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
39 PNG files occupy 0.22MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/ReduxFramework/ReduxCore/assets/img/2-col-portfolio.png1.02KB0.15KB▼ 85.07%
inc/ReduxFramework/ReduxCore/assets/img/1col.png2.83KB0.14KB▼ 95.13%
inc/ReduxFramework/ReduxCore/assets/img/3cm.png2.96KB0.29KB▼ 90.35%
inc/ReduxFramework/ReduxCore/assets/img/4-col-portfolio.png1.01KB0.17KB▼ 83.45%
inc/ReduxFramework/ReduxCore/assets/img/menu_icon.png1.41KB0.50KB▼ 64.62%