83% eprolo-pod-dropshipping

Code Review | Inkedjoy POD Dropshipping

WordPress plugin Inkedjoy POD Dropshipping scored83%from 54 tests.

About plugin

  • Plugin page: eprolo-pod-dropsh...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.3
  • WordPress version: 6.3.1
  • First release: Apr 27, 2022
  • Latest release: Oct 19, 2022
  • Number of updates: 11
  • Update frequency: every 15.9 days
  • Top authors: paulepro2019 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,403 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.85ms] Passed 4 tests

Server-side resources used by Inkedjoy POD Dropshipping
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.49 ▲1.16
Dashboard /wp-admin3.33 ▲0.0248.30 ▼1.82
Posts /wp-admin/edit.php3.44 ▲0.0850.68 ▼0.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.48 ▼16.02
Media Library /wp-admin/upload.php3.25 ▲0.0237.03 ▼1.28

Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
eprolo_pod__version
eprolo_pod__installed
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Inkedjoy POD Dropshipping: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.29 ▼0.381.79 ▼0.0242.07 ▲0.98
Dashboard /wp-admin2,206 ▲355.60 ▼0.0684.54 ▼5.4776.70 ▲31.12
Posts /wp-admin/edit.php2,114 ▲142.02 ▼0.0235.99 ▼1.8537.17 ▼2.19
Add New Post /wp-admin/post-new.php1,549 ▲923.15 ▲0.07720.05 ▲10.9148.80 ▼11.41
Media Library /wp-admin/upload.php1,411 ▲114.22 ▲0.02100.70 ▼7.1878.63 ▲33.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • eprolo_pod__version
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • eprolo_pod__installed
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eprolo-pod-dropshipping/eprolo_pod.php:49
    • > PHP Fatal error
      Uncaught Error: Class 'Eprolo_Pod_Options_Manager' not found in wp-content/plugins/eprolo-pod-dropshipping/Eprolo_pod_ajax.php:6

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
You can look at the official readme.txt

eprolo-pod-dropshipping/eprolo_pod.php 85% from 13 tests

Analyzing the main PHP file in "Inkedjoy POD Dropshipping" version 1.3
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("eprolo-pod-dropshipping.php" instead of "eprolo_pod.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected1,015 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7130164567
JavaScript39716408
CSS23640

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.80
▷ Minimum class complexity2.00
▷ Maximum class complexity26.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods3572.92%
▷ Protected methods1327.08%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logoinkedjoy.png28.29KB8.33KB▼ 70.54%
images/inkedjoy.png5.00KB1.92KB▼ 61.50%
images/eprolo_logo.png46.45KB25.83KB▼ 44.38%
images/eprolo.png0.49KB0.33KB▼ 33.00%
images/logoi.png1.62KB0.76KB▼ 53.22%