79% riddimstream

Code Review | Riddimstream

WordPress plugin Riddimstream scored79%from 54 tests.

About plugin

  • Plugin page: riddimstream
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.4.0
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: May 30, 2017
  • Number of updates: 5
  • Update frequency: every 106.2 days
  • Top authors: riddimstream (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Riddimstream
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.83 ▼11.66
Dashboard /wp-admin3.33 ▼0.0244.71 ▼22.78
Posts /wp-admin/edit.php3.38 ▲0.0251.24 ▲1.18
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.35 ▼16.47
Media Library /wp-admin/upload.php3.25 ▲0.0237.83 ▲2.17

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Riddimstream
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.291.71 ▼0.4740.48 ▼6.99
Dashboard /wp-admin2,195 ▲255.59 ▼0.0690.83 ▼9.5837.68 ▼1.85
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.1140.10 ▲0.0033.38 ▼5.61
Add New Post /wp-admin/post-new.php1,527 ▲122.99 ▼0.53631.75 ▼72.5954.55 ▼0.52
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0297.25 ▼12.1545.17 ▼1.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/riddimstream/tpl/iframe.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/riddimstream/tpl/iframe.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/riddimstream/tpl/iframe.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/riddimstream/tpl/iframe.php on line 3
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/riddimstream/tpl/iframe.php on line 5
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/riddimstream/tpl/iframe.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/riddimstream/riddimstream.php:14
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/riddimstream/tpl/iframe.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
2 plugin tags: riddimstream, shortcode

riddimstream/riddimstream.php Passed 13 tests

The primary PHP file in "Riddimstream" version 1.1.0 is used by WordPress to initiate all plugin functionality
27 characters long description:
Embed Riddim Stream widgets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected146 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP215874
JavaScript1113072

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/riddim.png36.65KB9.58KB▼ 73.87%