84% embedly

Code Review | Embedly

WordPress plugin Embedly scored84%from 54 tests.

About plugin

  • Plugin page: embedly
  • Plugin version: 4.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.4
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: Jun 28, 2018
  • Number of updates: 143
  • Update frequency: every 20.7 days
  • Top authors: Embedly (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

4,000+ active /197,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.89ms] Passed 4 tests

Analyzing server-side resources used by Embedly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.92 ▼0.91
Dashboard /wp-admin3.33 ▲0.0244.71 ▼4.09
Posts /wp-admin/edit.php3.38 ▲0.0245.94 ▼0.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0478.33 ▼15.28
Media Library /wp-admin/upload.php3.25 ▲0.0238.26 ▼3.29

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

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

Browser metrics Passed 4 tests

Embedly: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.35 ▲0.071.92 ▲0.2643.94 ▲2.39
Dashboard /wp-admin2,218 ▲445.55 ▼0.0784.46 ▼6.5135.37 ▼9.11
Posts /wp-admin/edit.php2,129 ▲292.06 ▲0.0743.75 ▲9.5832.20 ▼4.94
Add New Post /wp-admin/post-new.php1,552 ▲2623.34 ▼0.28667.95 ▲1.3656.21 ▲7.30
Media Library /wp-admin/upload.php1,429 ▲324.26 ▲0.07114.46 ▲11.4647.64 ▲3.78

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/embedly/embedly.php:31

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: image, video, card, pdf, embed...

embedly/embedly.php Passed 13 tests

The main file in "Embedly" v. 4.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
The Embedly Plugin extends Wordpress's automatic embed feature, allowing bloggers to Embed from 500+ services and counting.

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
No dangerous file extensions were detected1,350 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1116195604
CSS12115369
JavaScript279114326
SVG20232
JSON10019

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.34
Average class complexity69.00
▷ Minimum class complexity69.00
▷ Maximum class complexity69.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/embedly_wordpress_logo.png1.22KB0.00KB▼ 100.00%
img/wordpressicon-93x88.png1.92KB1.01KB▼ 47.25%