10% handy-ultimate-content-embedder

Code Review | Handy Ultimate Content Embedder

WordPress plugin Handy Ultimate Content Embedder scored 10% from 53 tests.

About plugin

  • Plugin page: handy-ultimate-co...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Oct 20, 2015
  • Latest release: Oct 20, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: HandyWebGuy (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 804 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/handy-ultimate-content-embedder/handy-ultimate-content-embedder.php+172
    Trying to access array offset on value of type null

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

A check of server-side resources used by Handy Ultimate Content Embedder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0033.44 ▼1.48
Dashboard /wp-admin3.06 ▲0.0040.18 ▼4.86
Posts /wp-admin/edit.php3.11 ▲0.0043.23 ▼8.55
Add New Post /wp-admin/post-new.php5.42 ▼0.0186.73 ▼1,026.00
Media Library /wp-admin/upload.php3.00 ▼0.0130.03 ▼9.16

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Handy Ultimate Content Embedder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,648 ▲4215.84 ▲0.207.91 ▼0.0149.18 ▲2.91
Dashboard /wp-admin2,949 ▲996.09 ▲0.23135.46 ▲3.86101.63 ▼0.80
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0162.93 ▼4.7990.91 ▲9.36
Add New Post /wp-admin/post-new.php1,853 ▲218.89 ▲1.11353.10 ▼11.78109.84 ▲3.96
Media Library /wp-admin/upload.php1,775 ▼05.02 ▲0.03151.34 ▼2.91106.88 ▼8.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/handy-ultimate-content-embedder/handy-ultimate-content-embedder.php:60
    • > PHP Parse error
      syntax error, unexpected 'elseif' (T_ELSEIF), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/handy-ultimate-content-embedder/options.php on line 135

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === handy-ultimate-content-embedder === )
The official readme.txt is a good inspiration

handy-ultimate-content-embedder/handy-ultimate-content-embedder.php Passed 13 tests

The principal PHP file in "Handy Ultimate Content Embedder" v. 1.0 is loaded by WordPress automatically on each request
133 characters long description:
Embeds mobile / desktop only, html page, another WP database, entire post, page or parts of a post or page contents inside your blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected799 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2237120758
CSS112541

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.33
▷ Minimum class complexity8.00
▷ Maximum class complexity40.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin