88% embedy-wall

Code Review | Embedly Wall

WordPress plugin Embedly Wall scored 88% from 54 tests.

About plugin

  • Plugin page: embedy-wall
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Feb 27, 2014
  • Latest release: Mar 7, 2014
  • Number of updates: 11
  • Update frequency: every 0.7 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,203 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼138.54ms] Passed 4 tests

This is a short check of server-side resources used by Embedly Wall
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.92 ▲0.2036.77 ▲11.98
Dashboard /wp-admin3.15 ▲0.0950.39 ▲3.49
Posts /wp-admin/edit.php3.20 ▲0.0952.55 ▲4.67
Add New Post /wp-admin/post-new.php5.51 ▲0.0796.62 ▼562.28
Media Library /wp-admin/upload.php3.09 ▲0.0937.77 ▼0.02
Embedly Wall Settings /wp-admin/edit.php?post_type=embed&page=embedly-wall-settings3.0625.50
Add New Embedly Wall Post /wp-admin/edit.php?post_type=embed&page=add-new-embedly-wall-post3.0633.38
All Embeds /wp-admin/edit.php?post_type=embed3.1338.03
Wall Narratives /wp-admin/edit-tags.php?taxonomy=narrative&post_type=embed3.0931.32

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embedly Wall
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,760 ▲16415.91 ▼0.018.85 ▲0.1153.44 ▲4.74
Dashboard /wp-admin3,019 ▲856.13 ▲0.14152.74 ▲2.89122.84 ▲2.51
Posts /wp-admin/edit.php2,790 ▲512.69 ▲0.0076.26 ▲5.1189.54 ▼8.80
Add New Post /wp-admin/post-new.php1,649 ▼3421.42 ▲2.97275.58 ▼122.23113.98 ▲4.08
Media Library /wp-admin/upload.php1,784 ▲365.06 ▲0.07163.10 ▲15.56125.35 ▲0.68
Embedly Wall Settings /wp-admin/edit.php?post_type=embed&page=embedly-wall-settings1,1942.2158.9183.63
Add New Embedly Wall Post /wp-admin/edit.php?post_type=embed&page=add-new-embedly-wall-post1,2142.0956.8573.30
All Embeds /wp-admin/edit.php?post_type=embed1,4442.6373.3483.66
Wall Narratives /wp-admin/edit-tags.php?taxonomy=narrative&post_type=embed1,7872.5266.7887.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/embedy-wall/templates/embed_template.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embedy-wall/templates/embed_template.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/embedy-wall/admin/embedly-wall-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/embedy-wall/admin/embedly-wall-add-new.php:47
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embedy-wall/templates/embed_template.php on line 10
    • > PHP Notice
      Undefined variable: embed in wp-content/plugins/embedy-wall/templates/embed_template.php on line 10
    • > PHP Notice
      Undefined variable: embed in wp-content/plugins/embedy-wall/templates/embed_template.php on line 18
    • > PHP Notice
      Undefined variable: embed in wp-content/plugins/embedy-wall/templates/embed_template.php on line 10
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embedy-wall/templates/embed_template.php on line 15
    • > PHP Notice
      Undefined variable: embed in wp-content/plugins/embedy-wall/templates/embed_template.php on line 15
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/embedy-wall/templates/embed_template.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === embedy-wall === )
The official readme.txt might help

embedy-wall/embedly-wall.php 92% from 13 tests

Analyzing the main PHP file in "Embedly Wall" version 1.1
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("embedy-wall.php" instead of "embedly-wall.php")

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 plugin548 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410932528
CSS13020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.81MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png113.00KB42.04KB▼ 62.80%
assets/screenshot-1.png113.40KB38.52KB▼ 66.03%
assets/screenshot-6.png148.70KB51.74KB▼ 65.20%
assets/screenshot-5.png310.91KB100.61KB▼ 67.64%
assets/screenshot-4.png63.47KB25.24KB▼ 60.23%