89% custom-instagram-embed

Code Review | Custom Social Embed

WordPress plugin Custom Social Embed scored 89% from 54 tests.

About plugin

  • Plugin page: custom-instagram-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2019
  • Latest release: Oct 13, 2019
  • Number of updates: 7
  • Update frequency: every 13.6 days
  • Top authors: teodoropiccinni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 705 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Custom Social Embed
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.19 ▼0.48
Dashboard /wp-admin3.31 ▲0.0145.09 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0045.32 ▲0.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.72 ▼6.94
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▼2.86

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Custom Social Embed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.31 ▼1.051.68 ▼0.2545.06 ▼5.47
Dashboard /wp-admin2,203 ▲185.83 ▲0.0295.97 ▼13.4835.78 ▼5.43
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0136.42 ▲1.9232.64 ▼5.38
Add New Post /wp-admin/post-new.php1,547 ▲2823.39 ▲0.32686.85 ▲5.3855.49 ▼9.16
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0294.48 ▼14.8044.42 ▼3.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: hashtag, hashtags, comments, instagram, comment...

custom-instagram-embed/custom-social-embed.php 85% from 13 tests

The main PHP script in "Custom Social Embed" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 270 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-instagram-embed.php" instead of "custom-social-embed.php")

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 detected16 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP151613
Markdown1103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for 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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.24MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png199.29KB56.54KB▼ 71.63%
icon-256x256.png42.45KB13.38KB▼ 68.47%