83% eprolo-dropshipping

Code Review | EPROLO Dropshipping

WordPress plugin EPROLO Dropshipping scored83%from 54 tests.

About plugin

  • Plugin page: eprolo-dropshipping
  • Plugin version: 1.7.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9.3
  • WordPress version: 6.3.1
  • First release: May 18, 2020
  • Latest release: Oct 18, 2022
  • Number of updates: 25
  • Update frequency: every 35.4 days
  • Top authors: paulepro2019 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /16,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.80ms] Passed 4 tests

A check of server-side resources used by EPROLO Dropshipping
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1036.55 ▼7.15
Dashboard /wp-admin3.40 ▲0.1051.44 ▼1.09
Posts /wp-admin/edit.php3.52 ▲0.1656.58 ▲3.26
Add New Post /wp-admin/post-new.php5.98 ▲0.1093.69 ▼15.47
Media Library /wp-admin/upload.php3.33 ▲0.1037.92 ▲0.50

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
eprolo__version
eprolo__installed
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for EPROLO Dropshipping
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.53 ▼0.651.78 ▼0.1841.44 ▼0.30
Dashboard /wp-admin2,220 ▲324.87 ▼1.0699.02 ▼5.6491.25 ▲49.82
Posts /wp-admin/edit.php2,106 ▲141.99 ▼0.0439.43 ▼0.2636.71 ▼4.23
Add New Post /wp-admin/post-new.php1,687 ▲17324.63 ▲6.80652.39 ▼38.8660.60 ▼2.24
Media Library /wp-admin/upload.php1,402 ▲144.13 ▼0.12101.19 ▼1.8279.75 ▲34.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • eprolo__installed
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • eprolo__version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Eprolo_OptionsManager' not found in wp-content/plugins/eprolo-dropshipping/Eprolo_AJAX.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eprolo-dropshipping/eprolo.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
You can look at the official readme.txt

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

Analyzing the main PHP file in "EPROLO Dropshipping" version 1.7.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("eprolo-dropshipping.php" instead of "eprolo.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin867 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7119181458
JavaScript39717393
CSS211616

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.60
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods3472.34%
▷ Protected methods1327.66%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/eprolo.png1.29KB0.65KB▼ 49.32%
images/eprolo_logo.png46.45KB25.83KB▼ 44.38%