84% haiku-deck-oembed

Code Review | Haiku Deck for Wordpress

WordPress plugin Haiku Deck for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: haiku-deck-oembed
  • Plugin version: 01.00
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.4.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Oct 12, 2012
  • Number of updates: 3
  • Update frequency: every 6.7 days
  • Top authors: marckula (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,463 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Haiku Deck for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.90 ▲2.07
Dashboard /wp-admin3.32 ▼0.0345.32 ▼17.65
Posts /wp-admin/edit.php3.37 ▲0.0148.21 ▲9.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.23 ▼22.13
Media Library /wp-admin/upload.php3.24 ▲0.0133.11 ▲4.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Haiku Deck for Wordpress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.491.68 ▼0.2436.76 ▼8.44
Dashboard /wp-admin2,195 ▲185.62 ▲0.0184.61 ▼19.5237.62 ▼6.23
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0435.04 ▼0.8332.62 ▼0.72
Add New Post /wp-admin/post-new.php1,526 ▼923.31 ▲5.09657.44 ▼3.8063.41 ▼19.65
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.0698.59 ▼0.7243.81 ▲1.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/haiku-deck-oembed/haiku-deck.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: embeds, embed, oembed

haiku-deck-oembed/haiku-deck.php 92% from 13 tests

The primary PHP file in "Haiku Deck for Wordpress" version 01.00 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("haiku-deck-oembed.php" instead of "haiku-deck.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112216

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin