84% stream-manager

Code Review | Stream Manager

WordPress plugin Stream Manager scored 84% from 54 tests.

About plugin

  • Plugin page: stream-manager
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7.3
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: May 25, 2017
  • Number of updates: 23
  • Update frequency: every 21.0 days
  • Top authors: lggorman (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,337 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.00MB] [CPU: ▼1.84ms] Passed 4 tests

This is a short check of server-side resources used by Stream Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.63 ▼9.44
Dashboard /wp-admin3.31 ▲0.0145.38 ▼2.49
Posts /wp-admin/edit.php3.36 ▲0.0050.47 ▲6.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▲1.06
Media Library /wp-admin/upload.php3.23 ▲0.0038.28 ▲3.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Stream Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.29 ▼1.101.70 ▼0.5641.49 ▼0.02
Dashboard /wp-admin2,213 ▲345.83 ▼0.0398.51 ▲0.5038.87 ▼5.32
Posts /wp-admin/edit.php2,095 ▲92.05 ▲0.0139.06 ▼1.4535.06 ▲3.01
Add New Post /wp-admin/post-new.php1,527 ▼1023.29 ▼0.01672.14 ▼97.9753.98 ▲2.28
Media Library /wp-admin/upload.php1,389 ▲14.32 ▲0.1695.94 ▼12.5141.89 ▼4.29

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

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'TimberPost' not found in wp-content/plugins/stream-manager/includes/timber-stream.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were 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
1 plugin tags: posts

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

The main PHP script in "Stream Manager" version 1.3.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,609 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP8228600708
JavaScript2127152523
Sass14131233
Markdown143084
Twig6251859
CSS1001
SVG1001

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.36
Average class complexity14.29
▷ Minimum class complexity4.00
▷ Maximum class complexity37.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1122.45%
▷ Public methods4693.88%
▷ Protected methods00.00%
▷ Private methods36.12%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.59MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png101.02KB27.37KB▼ 72.91%
assets/screenshot-remove.png88.42KB23.78KB▼ 73.11%
assets/stream_manager-readme_banner.png12.64KB5.82KB▼ 54.00%
assets/screenshot-2.png89.39KB23.83KB▼ 73.35%
assets/screenshot-add.png101.02KB27.37KB▼ 72.91%