84% codepen-oembed

Code Review | CodePen oEmbed

WordPress plugin CodePen oEmbed scored84%from 54 tests.

About plugin

  • Plugin page: codepen-oembed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2014
  • Latest release: Dec 17, 2014
  • Number of updates: 12
  • Update frequency: every 21.5 days
  • Top authors: mordauk (66.67%)norcross (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /4,726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by CodePen oEmbed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.35 ▼1.30
Dashboard /wp-admin3.31 ▲0.0043.65 ▼1.52
Posts /wp-admin/edit.php3.36 ▲0.0041.53 ▼2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.57 ▼21.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.45 ▼0.17

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

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

Browser metrics Passed 4 tests

CodePen oEmbed: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.111.73 ▲0.1043.00 ▲0.65
Dashboard /wp-admin2,198 ▲245.64 ▲0.0884.14 ▲1.7637.75 ▼5.94
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0633.91 ▼3.7233.45 ▼2.77
Add New Post /wp-admin/post-new.php1,526 ▼022.92 ▼0.32691.09 ▲32.8659.18 ▲6.03
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0193.41 ▼21.6541.72 ▼7.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/codepen-oembed/codepen-oembed.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
Please fix the following attributes: The official readme.txt is a good inspiration

codepen-oembed/codepen-oembed.php Passed 13 tests

The main file in "CodePen oEmbed" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Adds oEmbed support for CodePen.io

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
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1182

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin