68% yuvver

Code Review | Yuvver

WordPress plugin Yuvver scored68%from 54 tests.

About plugin

  • Plugin page: yuvver
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 18, 2015
  • Number of updates: 29
  • Update frequency: every 0.7 days
  • Top authors: tsachibenezra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /594 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▲6.99ms] Passed 4 tests

Analyzing server-side resources used by Yuvver
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1746.31 ▲7.60
Dashboard /wp-admin3.47 ▲0.1751.98 ▲6.37
Posts /wp-admin/edit.php3.56 ▲0.2155.41 ▲9.51
Add New Post /wp-admin/post-new.php6.05 ▲0.17100.51 ▲4.47
Media Library /wp-admin/upload.php3.39 ▲0.1747.34 ▲14.03
Add new invitation /wp-admin/post-new.php?post_type=yuvver_invitations3.5051.50
Settings /wp-admin/edit.php?post_type=yuvver_invitations&page=yuvver-options3.3436.81
Show all invitations /wp-admin/edit.php?post_type=yuvver_invitations3.4240.97

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_yuvver
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
yuvver_database_version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Yuvver
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲14413.58 ▼1.045.35 ▲3.4741.00 ▼1.14
Dashboard /wp-admin2,239 ▲545.81 ▼0.0898.46 ▼1.4467.56 ▲24.97
Posts /wp-admin/edit.php2,125 ▲362.00 ▼0.0138.24 ▼2.7734.28 ▼3.13
Add New Post /wp-admin/post-new.php1,703 ▲18924.47 ▲6.87727.63 ▲88.1657.51 ▲5.62
Media Library /wp-admin/upload.php1,418 ▲274.14 ▼0.03111.76 ▲16.2552.69 ▲8.37
Add new invitation /wp-admin/post-new.php?post_type=yuvver_invitations2,1687.48150.20125.87
Settings /wp-admin/edit.php?post_type=yuvver_invitations&page=yuvver-options8212.0726.5626.30
Show all invitations /wp-admin/edit.php?post_type=yuvver_invitations1,0891.9929.9830.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_yuvver
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • yuvver_database_version
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=yuvver_invitations&page=yuvver-options
    • > Notice in wp-content/plugins/yuvver/includes/admin_page.php+120
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yuvver/includes/schedule_exec.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yuvver/includes/admin_page.php:309
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/yuvver/yuvver.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yuvver/includes/yuvver_post_type.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yuvver/includes/scripts.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: email, invitation, share, smart

yuvver/yuvver.php Passed 13 tests

The primary PHP file in "Yuvver" version 1.4.1 is used by WordPress to initiate all plugin functionality
105 characters long description:
Yuvver allows your clients share your Website, Products or Affiliate Program with their friends by E-mail

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected743 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP630440636
PO File1360107

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/menu_icon.png0.94KB0.88KB▼ 6.94%