79% youmbrella

Code Review | Youmbrella

WordPress plugin Youmbrella scored79%from 54 tests.

About plugin

  • Plugin page: youmbrella
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: bycastelli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /428 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.84MB] [CPU: ▼52.21ms] Passed 4 tests

This is a short check of server-side resources used by Youmbrella
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.42 ▼37.17
Dashboard /wp-admin2.17 ▼1.148.26 ▼44.26
Posts /wp-admin/edit.php2.17 ▼1.198.33 ▼41.40
Add New Post /wp-admin/post-new.php2.17 ▼3.728.11 ▼86.02
Media Library /wp-admin/upload.php2.17 ▼1.067.43 ▼29.19

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 13 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
rcsplay_status
rcsplay_name
rcsplay_start
rcsplay_key
rcsplay_last_ping
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Youmbrella
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.29 ▼1.384.32 ▲2.1443.39 ▼3.40
Dashboard /wp-admin2,214 ▲295.85 ▼0.08102.67 ▼14.7744.22 ▼3.34
Posts /wp-admin/edit.php2,103 ▲142.01 ▼0.0335.43 ▲0.5534.19 ▼9.31
Add New Post /wp-admin/post-new.php1,536 ▲1718.23 ▼2.97626.03 ▼74.9258.97 ▲11.57
Media Library /wp-admin/upload.php1,396 ▲54.22 ▼0.06101.21 ▲0.8442.56 ▲0.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the __rcsplay_admin__style_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 13 options in the database
    • widget_theysaidso_widget
    • rcsplay_start
    • widget_recent-comments
    • rcsplay_status
    • rcsplay_last_ping
    • rcsplay_key
    • widget_recent-posts
    • can_compress_scripts
    • rcsplay_name
    • rcsplay_company
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Protected Video), #2 (Gutenberg Editor), #3 (Classic Editor)
You can take inspiration from this readme.txt

youmbrella/splay.php 92% from 13 tests

This is the main PHP file of "Youmbrella" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("youmbrella.php" instead of "splay.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
Everything looks great! No dangerous files found in this plugin1,090 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP893104630
JavaScript22442236
CSS288177
SVG10147

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/splay-icon.png0.64KB0.55KB▼ 13.02%