94% yeshourun-digital-support

Code Review | Yeshourun Digital Support

WordPress plugin Yeshourun Digital Support scored 94% from 54 tests.

About plugin

  • Plugin page: yeshourun-digital...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 5.8.1
  • First release: Feb 4, 2021
  • Latest release: Jul 22, 2021
  • Number of updates: 4
  • Update frequency: every 42.0 days
  • Top authors: yeshourundigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼139.71ms] Passed 4 tests

An overview of server-side resources used by Yeshourun Digital Support
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1440.08 ▲14.76
Dashboard /wp-admin3.10 ▲0.0443.21 ▲2.96
Posts /wp-admin/edit.php3.15 ▲0.0450.67 ▲1.13
Add New Post /wp-admin/post-new.php5.45 ▲0.0295.95 ▼560.42
Media Library /wp-admin/upload.php3.04 ▲0.0332.71 ▼2.50
Add-on /wp-admin/admin.php?page=YD-Addon3.0131.24
General /wp-admin/admin.php?page=YD-Support3.0233.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options
Yeshourun_Brand
Yeshourun_Access

Browser metrics Passed 4 tests

Checking browser requirements for Yeshourun Digital Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲11515.83 ▲0.399.34 ▲0.2553.38 ▼2.48
Dashboard /wp-admin3,001 ▲705.88 ▼0.08146.99 ▼12.84114.42 ▼7.57
Posts /wp-admin/edit.php2,770 ▲312.70 ▲0.0170.40 ▲3.0594.61 ▼1.69
Add New Post /wp-admin/post-new.php1,612 ▲3118.79 ▼1.55400.46 ▼8.26109.84 ▼7.05
Media Library /wp-admin/upload.php1,838 ▲285.03 ▲0.02152.35 ▼6.69125.95 ▲4.55
Add-on /wp-admin/admin.php?page=YD-Addon1,2132.0962.8797.99
General /wp-admin/admin.php?page=YD-Support1,3422.0666.17112.15

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
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/yeshourun-digital-support/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/yeshourun-digital-support/include/settings.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/yeshourun-digital-support/include/addon.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: optimization, yeshourun digital, wordpress speed, website support, yeshourun...

yeshourun-digital-support/Yeshourun-Support.php 92% from 13 tests

"Yeshourun Digital Support" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("yeshourun-digital-support.php" instead of "Yeshourun-Support.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected694 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS17610422
PHP5818272

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected