84% simple-wistia-embed

Code Review | Simple Wistia Embed

WordPress plugin Simple Wistia Embed scored84%from 54 tests.

About plugin

  • Plugin page: simple-wistia-embed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2.3
  • WordPress version: 6.3.1
  • First release: May 1, 2015
  • Latest release: Jul 25, 2015
  • Number of updates: 3
  • Update frequency: every 28.7 days
  • Top authors: chrisfromthelc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,323 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Simple Wistia Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.51 ▼1.46
Dashboard /wp-admin3.31 ▼0.0450.09 ▼17.20
Posts /wp-admin/edit.php3.36 ▲0.0049.62 ▼5.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.11 ▼17.97
Media Library /wp-admin/upload.php3.23 ▲0.0038.41 ▲1.73

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Simple Wistia Embed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.112.06 ▲0.2243.50 ▼1.58
Dashboard /wp-admin2,198 ▲215.66 ▼0.0090.67 ▼6.9440.98 ▼6.57
Posts /wp-admin/edit.php2,097 ▼32.16 ▲0.2135.11 ▼3.5632.42 ▼5.64
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲0.42676.04 ▼13.1248.75 ▼5.12
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0193.52 ▼11.5943.26 ▼1.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-wistia-embed/simple-wistia-embed.php

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-wistia-embed === )
You can take inspiration from this readme.txt

simple-wistia-embed/simple-wistia-embed.php Passed 13 tests

The main PHP file in "Simple Wistia Embed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Allows for the simplest Wistia video embeds. Simply paste the URL and it works!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1293

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin