84% pods-stream

Code Review | Pods Stream Connector

WordPress plugin Pods Stream Connector scored84%from 54 tests.

About plugin

  • Plugin page: pods-stream
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Jun 2, 2017
  • Number of updates: 12
  • Update frequency: every 69.1 days
  • Top authors: sc0ttkclark (58.33%)NikV (50%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.49ms] Passed 4 tests

This is a short check of server-side resources used by Pods Stream Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▼1.69
Dashboard /wp-admin3.31 ▲0.0149.94 ▼8.20
Posts /wp-admin/edit.php3.36 ▲0.0046.00 ▼5.51
Add New Post /wp-admin/post-new.php5.89 ▲0.00111.44 ▲6.98
Media Library /wp-admin/upload.php3.23 ▲0.0038.90 ▼2.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Pods Stream Connector: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.23 ▼0.941.63 ▼0.0443.46 ▲2.67
Dashboard /wp-admin2,221 ▲204.86 ▼0.06110.12 ▼27.8442.23 ▼1.19
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0238.02 ▼2.6536.15 ▲0.39
Add New Post /wp-admin/post-new.php1,550 ▲2423.05 ▲5.39613.02 ▼106.5895.53 ▲36.24
Media Library /wp-admin/upload.php1,394 ▼64.26 ▲0.16104.15 ▼13.3748.48 ▲3.19

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Stream_Connector_Pods_Base' not found in wp-content/plugins/pods-stream/includes/WP_Stream_Connector_Pods.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pods-stream/pods-stream.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Stream\\Connector' not found in wp-content/plugins/pods-stream/includes/WP_Stream_Connector_Pods_Base.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Stream_Connector_Pods_Base' not found in wp-content/plugins/pods-stream/includes/WP_Stream_Connector_Pods_Content.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: stream, pods

pods-stream/pods-stream.php 92% from 13 tests

Analyzing the main PHP file in "Pods Stream Connector" version 3.0
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin