68% captivatesync-trade

Code Review | Captivate Sync

WordPress plugin Captivate Sync scored68%from 54 tests.

About plugin

  • Plugin page: captivatesync-trade
  • Plugin version: 2.0.22
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2019
  • Latest release: Jun 2, 2023
  • Number of updates: 74
  • Update frequency: every 17.7 days
  • Top authors: captivateaudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /15,884 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.59MB] [CPU: ▲5.29ms] Passed 4 tests

An overview of server-side resources used by Captivate Sync
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.22 ▲0.4955.71 ▲8.27
Dashboard /wp-admin4.22 ▲0.6663.70 ▲12.04
Posts /wp-admin/edit.php4.29 ▲0.6160.76 ▲5.95
Add New Post /wp-admin/post-new.php6.91 ▲0.7699.31 ▼5.09
Media Library /wp-admin/upload.php4.08 ▲0.5950.77 ▲12.31
My Shows /wp-admin/admin.php?page=cfm-hosting-podcasts3.9435.42
Shortcode Builder /wp-admin/admin.php?page=cfm-hosting-shortcode4.0746.78
Authentication /wp-admin/admin.php?page=cfm-hosting-credentials4.0642.85

Server storage [IO: ▲16.35MB] [DB: ▲0.01MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Captivate Sync
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.38 ▼0.261.94 ▲0.0744.67 ▲1.98
Dashboard /wp-admin2,212 ▲355.74 ▲0.0596.40 ▲5.5387.91 ▲46.34
Posts /wp-admin/edit.php2,136 ▲332.04 ▲0.0335.19 ▼3.1934.74 ▼1.24
Add New Post /wp-admin/post-new.php1,707 ▲17522.21 ▼1.19713.40 ▲54.4764.89 ▲9.44
Media Library /wp-admin/upload.php1,427 ▲274.23 ▼0.03101.20 ▲0.8876.37 ▲30.90
My Shows /wp-admin/admin.php?page=cfm-hosting-podcasts9321.9733.6655.02
Shortcode Builder /wp-admin/admin.php?page=cfm-hosting-shortcode1,3592.1233.9333.05
Authentication /wp-admin/admin.php?page=cfm-hosting-credentials9471.9329.3834.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_cfm_shows
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • cfm_plugin_updated
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/captivatesync-trade/inc/templates/template-parts/ql-toolbar.php
    • > /wp-content/plugins/captivatesync-trade/inc/templates/footer.php
    • > /wp-content/plugins/captivatesync-trade/inc/templates/template-parts/footer.php
  • 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require(CFMHinc/templates/template-parts/header.php): failed to open stream: No such file or directory in wp-content/plugins/captivatesync-trade/inc/templates/shortcode.php on line 9
    • > PHP Warning
      require(CFMHinc/templates/template-parts/header.php): failed to open stream: No such file or directory in wp-content/plugins/captivatesync-trade/inc/templates/user-credentials.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'CFMHinc/templates/template-parts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/captivatesync-trade/inc/templates/shortcode.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'CFMHinc/templates/template-parts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/captivatesync-trade/inc/templates/podcasts.php on line 9
    • > PHP Warning
      require(CFMHinc/templates/template-parts/header.php): failed to open stream: No such file or directory in wp-content/plugins/captivatesync-trade/inc/templates/podcasts.php on line 9
    • > PHP Fatal error
      require(): Failed opening required 'CFMHinc/templates/template-parts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/captivatesync-trade/inc/templates/user-credentials.php on line 9
    • > PHP Warning
      Use of undefined constant CFMH - assumed 'CFMH' (this will throw an Error in a future version of PHP) in wp-content/plugins/captivatesync-trade/inc/templates/episodes.php on line 12
    • > PHP Fatal error
      require(): Failed opening required 'CFMHinc/templates/template-parts/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/captivatesync-trade/inc/templates/episodes.php on line 12
    • > PHP Warning
      require(CFMHinc/templates/template-parts/header.php): failed to open stream: No such file or directory in wp-content/plugins/captivatesync-trade/inc/templates/episodes.php on line 12
    • > PHP Warning
      Use of undefined constant CFMH - assumed 'CFMH' (this will throw an Error in a future version of PHP) in wp-content/plugins/captivatesync-trade/inc/templates/user-credentials.php on line 9

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: podcast, captivate, itunes, blubrry, libsyn...

captivatesync-trade/captivate-sync.php 85% from 13 tests

The main PHP script in "Captivate Sync" version 2.0.22 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("captivatesync-trade.php" instead of "captivate-sync.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

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 detected83,840 lines of code in 168 files:
LanguageFilesBlank linesComment linesLines of code
SVG502047,523
CSS286,42815724,689
Sass841,2241,0135,053
PHP191,4218834,223
JavaScript304561771,999
HTML2900353

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity44.67
▷ Minimum class complexity2.00
▷ Maximum class complexity99.00
Average method complexity6.83
▷ Minimum method complexity1.00
▷ Maximum method complexity85.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods69
▷ Static methods5985.51%
▷ Public methods6695.65%
▷ Protected methods00.00%
▷ Private methods34.35%
Functions26
▷ Named functions2180.77%
▷ Anonymous functions519.23%
Constants7
▷ Global constants7100.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
7 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
captivate-sync-assets/img/rbm-inline.png53.13KB29.16KB▼ 45.11%
captivate-sync-assets/img/captivate.png6.23KB4.36KB▼ 29.91%
captivate-sync-assets/img/menu-icon.png1.43KB0.82KB▼ 42.47%
captivate-sync-assets/img/menu-icon_.png1.60KB1.18KB▼ 26.31%
vendor/images/sort_desc.png1.24KB0.30KB▼ 75.49%