83% chew-video-embed-shortcode

Code Review | Chew - Video Embed Shortcode

WordPress plugin Chew - Video Embed Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: chew-video-embed-...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2013
  • Latest release: Feb 11, 2014
  • Number of updates: 4
  • Update frequency: every 19.5 days
  • Top authors: benbowler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server-side resources used by Chew - Video Embed Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.65 ▼1.16
Dashboard /wp-admin3.31 ▲0.0059.17 ▲1.67
Posts /wp-admin/edit.php3.36 ▲0.0046.29 ▼6.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.01 ▼15.88
Media Library /wp-admin/upload.php3.23 ▲0.0039.13 ▲0.81

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Chew - Video Embed Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.47 ▼0.271.81 ▲0.0444.42 ▲1.75
Dashboard /wp-admin2,198 ▲185.65 ▲0.0284.70 ▼6.4740.56 ▼6.15
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0434.32 ▼3.2935.13 ▲0.96
Add New Post /wp-admin/post-new.php1,545 ▼323.21 ▼0.10687.26 ▼7.5963.47 ▲1.43
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.07102.23 ▲2.8246.48 ▲5.38

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chew-video-embed-shortcode/chew-wp.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === chew-video-embed-shortcode === )
Please take inspiration from this readme.txt

chew-video-embed-shortcode/chew-wp.php 85% from 13 tests

The primary PHP file in "Chew - Video Embed Shortcode" version 0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 362 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("chew-video-embed-shortcode.php" instead of "chew-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP172522

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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

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