78% threewp-broadcast

Code Review | Broadcast

WordPress plugin Broadcast scored78%from 54 tests.

About plugin

  • Plugin page: threewp-broadcast
  • Plugin version: 50.06
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2010
  • Latest release: Nov 8, 2023
  • Number of updates: 540
  • Update frequency: every 9.3 days
  • Top authors: edward_plainview (75.37%)edward mindreantre (24.81%)

Code review

54 tests

User reviews

199 reviews

Install metrics

1,000+ active /327,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.98ms] Passed 4 tests

Server-side resources used by Broadcast
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.85 ▲0.95
Dashboard /wp-admin3.32 ▲0.0145.36 ▼3.73
Posts /wp-admin/edit.php3.37 ▲0.0146.47 ▼4.01
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.95 ▼16.70
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▲0.53

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 399 new files
Database: no new tables, 32 new options
New WordPress options
ThreeWP_Broadcast_blogs_to_hide
theysaidso_admin_options
ThreeWP_Broadcast_role_custom_fields
widget_theysaidso_widget
ThreeWP_Broadcast_post_types
ThreeWP_Broadcast_save_post_decoys
db_upgraded
ThreeWP_Broadcast_blog_selector_position
widget_recent-posts
ThreeWP_Broadcast_canonical_url
...

Browser metrics Passed 4 tests

An overview of browser requirements for Broadcast
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.34 ▼0.041.73 ▲0.2343.57 ▲7.55
Dashboard /wp-admin2,198 ▲215.60 ▼0.0587.75 ▼13.3639.30 ▼3.82
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0038.84 ▼1.9135.94 ▼1.15
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▼0.01674.31 ▼16.9258.52 ▼2.79
Media Library /wp-admin/upload.php1,397 ▼34.28 ▲0.1097.27 ▼4.2141.02 ▼4.69

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
Please fix the following items
  • The uninstall procedure has failed, leaving 32 options in the database
    • ThreeWP_Broadcast_role_broadcast_as_draft
    • widget_recent-comments
    • ThreeWP_Broadcast_save_post_decoys
    • ThreeWP_Broadcast_role_custom_fields
    • widget_recent-posts
    • ThreeWP_Broadcast_canonical_limit_post_types
    • ThreeWP_Broadcast_blog_selector_position
    • theysaidso_admin_options
    • ThreeWP_Broadcast_existing_attachments
    • ThreeWP_Broadcast_role_link
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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/threewp-broadcast/tests/bootstrap.php
  • 229× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'threewp_broadcast\\maintenance\\checks\\check' not found in wp-content/plugins/threewp-broadcast/src/maintenance/checks/view_post_info/check.php:11
    • > PHP Fatal error
      Trait 'plainview\\sdk_broadcast\\table\\table_element' not found in wp-content/plugins/threewp-broadcast/src/sdk/table/row.php on line 10
    • > PHP Fatal error
      Trait 'plainview\\sdk_broadcast\\traits\\method_chaining' not found in wp-content/plugins/threewp-broadcast/src/broadcast_data/blog.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_broadcast\\table\\section' not found in wp-content/plugins/threewp-broadcast/src/sdk/table/body.php:10
    • > PHP Fatal error
      Trait 'plainview\\sdk_broadcast\\object_stores\\Store' not found in wp-content/plugins/threewp-broadcast/src/sdk/wordpress/object_stores/Store.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_broadcast\\form2\\inputs\\input' not found in wp-content/plugins/threewp-broadcast/src/sdk/form2/inputs/hidden.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_broadcast\\wordpress\\base' not found in wp-content/plugins/threewp-broadcast/src/premium_pack/Plugin_Pack.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'plainview\\sdk_broadcast\\wordpress\\row_actions\\Action' not found in wp-content/plugins/threewp-broadcast/src/sdk/wordpress/row_actions/Main.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'threewp_broadcast\\actions\\action' not found in wp-content/plugins/threewp-broadcast/src/actions/wp_insert_term.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'threewp_broadcast\\actions\\action' not found in wp-content/plugins/threewp-broadcast/src/actions/menu.php:5

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: syndication, franchise, multipost, hub, marketing...

threewp-broadcast/ThreeWP_Broadcast.php 92% from 13 tests

The primary PHP file in "Broadcast" version 50.06 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("threewp-broadcast.php" instead of "ThreeWP_Broadcast.php")

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
There were no executable files found in this plugin23,887 lines of code in 373 files:
LanguageFilesBlank linesComment linesLines of code
PHP3304,78610,66019,177
PO File89831,3912,259
JavaScript122062771,061
Sass2511418
CSS2657390
HTML3210238
Bourne Shell83014122
Markdown4450108
JSON30076
XML10038

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity6.42
▷ Minimum class complexity1.00
▷ Maximum class complexity141.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity92.00
Code structure
Namespaces72
Interfaces0
Traits69
Classes251
▷ Abstract classes51.99%
▷ Concrete classes24698.01%
▷ Final classes00.00%
Methods1,602
▷ Static methods1086.74%
▷ Public methods1,58699.00%
▷ Protected methods30.19%
▷ Private methods130.81%
Functions22
▷ Named functions1045.45%
▷ Anonymous functions1254.55%
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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/lock-16.png0.38KB0.26KB▼ 29.95%
images/link-16.png0.94KB0.97KB0.00%