89% dropship-with-wholesale2b

Code Review | Dropship with Wholesale2B

WordPress plugin Dropship with Wholesale2B scored89%from 54 tests.

About plugin

  • Plugin page: dropship-with-who...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Nov 28, 2023
  • Number of updates: 19
  • Update frequency: every 59.4 days
  • Top authors: onlinestorebiznet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,524 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼3.00ms] Passed 4 tests

An overview of server-side resources used by Dropship with Wholesale2B
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.49 ▼3.74
Dashboard /wp-admin3.32 ▲0.0244.17 ▼1.34
Posts /wp-admin/edit.php3.37 ▲0.0245.96 ▼2.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.99 ▼1.67
Media Library /wp-admin/upload.php3.25 ▲0.0230.94 ▼4.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Dropship with Wholesale2B
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1714.31 ▼0.041.88 ▼0.0844.87 ▲1.17
Dashboard /wp-admin2,203 ▲265.55 ▼0.1190.73 ▼5.1940.49 ▼2.56
Posts /wp-admin/edit.php2,114 ▲111.98 ▲0.0338.93 ▼4.6335.24 ▼1.17
Add New Post /wp-admin/post-new.php1,541 ▲1523.20 ▲0.27655.89 ▲50.0958.44 ▲2.48
Media Library /wp-admin/upload.php1,414 ▲114.18 ▼0.00106.55 ▲5.3240.70 ▼1.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Connect with Wholesale2B - A Walkthrough)
The official readme.txt might help

dropship-with-wholesale2b/dropship-with-wholesale2b.php 92% from 13 tests

Analyzing the main PHP file in "Dropship with Wholesale2B" version 2.0.1
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin206 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11131114
CSS19492

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin