90% generatewp-oembed

Code Review | GenerateWP Embed

WordPress plugin GenerateWP Embed scored90%from 54 tests.

About plugin

  • Plugin page: generatewp-oembed
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2
  • WordPress version: 6.3.1
  • First release: Feb 20, 2015
  • Latest release: Jul 6, 2019
  • Number of updates: 32
  • Update frequency: every 49.9 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /4,350 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: ▼9.62ms] Passed 4 tests

An overview of server-side resources used by GenerateWP Embed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.36 ▲6.80
Dashboard /wp-admin3.32 ▼0.0349.93 ▼20.05
Posts /wp-admin/edit.php3.37 ▲0.0146.59 ▼2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.06 ▼22.77
Media Library /wp-admin/upload.php3.25 ▲0.0141.11 ▲8.53

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GenerateWP Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.061.73 ▲0.0843.45 ▲2.65
Dashboard /wp-admin2,192 ▲185.56 ▼0.0696.08 ▲3.3845.07 ▼1.67
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0739.39 ▲3.2733.52 ▼2.30
Add New Post /wp-admin/post-new.php1,526 ▼023.46 ▲0.24662.99 ▼21.2158.90 ▲1.02
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0496.65 ▼5.9742.89 ▼2.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: snippets, oembed, embed, code, shortcode...

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

The primary PHP file in "GenerateWP Embed" version 1.5 is used by WordPress to initiate all plugin functionality
65 characters long description:
Embed code snippets from GenerateWP.com into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin93 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5418393

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png49.81KB16.51KB▼ 66.86%
screenshot-1.png21.29KB7.01KB▼ 67.06%