77% easy-to-manage-vendor

Code Review | Easy to Manage Vendor

WordPress plugin Easy to Manage Vendor scored77%from 54 tests.

About plugin

  • Plugin page: easy-to-manage-ve...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 28, 2022
  • Latest release: Sep 18, 2023
  • Number of updates: 7
  • Update frequency: every 68.7 days
  • Top authors: naeemkhan25 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /970 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.46ms] Passed 4 tests

An overview of server-side resources used by Easy to Manage Vendor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0745.50 ▲9.64
Dashboard /wp-admin3.38 ▲0.0748.00 ▲0.14
Posts /wp-admin/edit.php3.49 ▲0.1348.49 ▲4.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.92 ▼20.63
Media Library /wp-admin/upload.php3.30 ▲0.0735.30 ▼1.59

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 13 new options
New WordPress options
EMV_version
emv_message_subject
emv_message_desc
emv_enable_api_edit_mode
widget_theysaidso_widget
emv_enable_edit_mode
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
...

Browser metrics Passed 4 tests

Easy to Manage Vendor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5214.36 ▼0.191.75 ▼0.0344.22 ▼0.11
Dashboard /wp-admin2,216 ▲395.52 ▼0.1483.57 ▼3.4141.32 ▼1.18
Posts /wp-admin/edit.php2,128 ▲281.99 ▲0.0143.79 ▲9.4737.43 ▲1.07
Add New Post /wp-admin/post-new.php1,550 ▲2223.27 ▲0.23619.76 ▼71.7257.94 ▲1.41
Media Library /wp-admin/upload.php1,424 ▲214.22 ▲0.0295.61 ▼4.6542.61 ▼2.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 13 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • EMV_version
    • emv_enable_edit_mode
    • emv_message_subject
    • emv_run_first_time
    • theysaidso_admin_options
    • emv_message_desc
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-to-manage-vendor/includes/admin/class-numbers-list.php
    • > /wp-content/plugins/easy-to-manage-vendor/includes/frontend/WCFM/wcfm-menu.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-to-manage-vendor/includes/frontend/WCFM/views/emv-page.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'EMV_helper' not found in wp-content/plugins/easy-to-manage-vendor/includes/class-register-rest.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/easy-to-manage-vendor/easy-to-manage-vendor.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Chatting from admin site & Vendor list), #2 (SMS Gateway configuration), #4 (Configuration setting), #5 (Message setting), #6 (Custom CSS), #7 (Chatting from Vendor site), #8 (Register input), #9 (Forcibly input)
You can look at the official readme.txt

easy-to-manage-vendor/easy-to-manage-vendor.php 77% from 13 tests

The main file in "Easy to Manage Vendor" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

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
Everything looks great! No dangerous files found in this plugin4,514 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript71224052,865
PHP151735901,628
SVG30018
CSS3003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods98
▷ Static methods88.16%
▷ Public methods9192.86%
▷ Protected methods00.00%
▷ Private methods77.14%
Functions9
▷ Named functions00.00%
▷ Anonymous functions9100.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/register/9d5328fb490cddd43f66.png170.28KB68.04KB▼ 60.04%
assets/setting/856dec1cc99d08823903fadfaf3c295d.png28.43KB14.51KB▼ 48.97%
assets/register/007b2705c0a8f69dfdf6.png69.20KB23.42KB▼ 66.16%