84% embed-tidal

Code Review | Embed Tidal

WordPress plugin Embed Tidal scored84%from 54 tests.

About plugin

  • Plugin page: embed-tidal
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Mar 12, 2018
  • Number of updates: 7
  • Update frequency: every 74.4 days
  • Top authors: bjornjohansen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,709 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.03MB] [CPU: ▼1.46ms] Passed 4 tests

An overview of server-side resources used by Embed Tidal
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.53 ▲1.46
Dashboard /wp-admin3.34 ▲0.0345.06 ▼3.41
Posts /wp-admin/edit.php3.39 ▲0.0345.04 ▼0.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.79 ▼3.15
Media Library /wp-admin/upload.php3.26 ▲0.0338.18 ▲8.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Embed Tidal: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.59 ▼0.731.83 ▲0.0144.19 ▼5.53
Dashboard /wp-admin2,206 ▲184.84 ▼0.20102.69 ▼3.7438.07 ▼5.71
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0438.22 ▲2.1435.96 ▲1.33
Add New Post /wp-admin/post-new.php1,680 ▲14624.85 ▲1.85599.73 ▼25.8262.99 ▲11.95
Media Library /wp-admin/upload.php1,391 ▲64.25 ▲0.0596.44 ▼6.1043.04 ▲0.08

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-tidal/embed-tidal.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: tidal, embed, shortcake, shortcode, streaming

embed-tidal/embed-tidal.php Passed 13 tests

The principal PHP file in "Embed Tidal" v. 0.2.0 is loaded by WordPress automatically on each request
110 characters long description:
Embed the Tidal web player via pasting a URL or using a shortcode. Works well with the Shortcake shortcode UI.

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
Good job! No executable or dangerous file extensions detected135 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP235135117
JavaScript15818

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin