78% epages-online-shop

Code Review | ePages Online Shop

WordPress plugin ePages Online Shop scored 78% from 54 tests.

About plugin

  • Plugin page: epages-online-shop
  • Plugin version: 5.0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.20
  • WordPress version: 5.9.2
  • First release: Mar 29, 2016
  • Latest release: Jun 1, 2018
  • Number of updates: 65
  • Update frequency: every 12.5 days
  • Top authors: epages (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active / 8,475 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
Installer ran successfully

Server metrics [RAM: ▼0.20MB] [CPU: ▼312.87ms] Passed 4 tests

This is a short check of server-side resources used by ePages Online Shop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.1758.32 ▲6.97
Dashboard /wp-admin3.42 ▲0.0123.49 ▼37.92
Posts /wp-admin/edit.php3.54 ▼0.1038.19 ▼3.95
Add New Post /wp-admin/post-new.php6.15 ▼0.8374.70 ▼1,196.39
Media Library /wp-admin/upload.php3.43 ▲0.1321.09 ▼13.23

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 88 new files
Database: no new tables, 1 new option
New WordPress options
widget_cart_widget

Browser metrics Passed 4 tests

Checking browser requirements for ePages Online Shop
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,088 ▲33415.86 ▲0.225.86 ▼0.952.89 ▼0.15
Dashboard /wp-admin3,173 ▲3196.19 ▲0.00122.94 ▼12.55184.71 ▲18.32
Posts /wp-admin/edit.php2,939 ▲2483.13 ▼0.1165.38 ▼27.55156.76 ▲3.02
Add New Post /wp-admin/post-new.php1,797 ▲8618.31 ▼3.08376.40 ▼79.22200.26 ▲33.01
Media Library /wp-admin/upload.php1,980 ▲2825.63 ▲0.15140.82 ▼10.13238.40 ▲48.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_cart_widget

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

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/epages-online-shop/functions/cart_widget.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/epages-online-shop/templates/popup.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/epages-online-shop/functions/register_shortcode.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/epages-online-shop/index.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/epages-online-shop/templates/options_page.php:2
    • > PHP Notice
      Undefined variable: epages_plugin_url in wp-content/plugins/epages-online-shop/templates/popup.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
    • > PHP Notice
      Undefined variable: epages_api_http_options in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/epages-online-shop/templates/popup.php on line 6
    • > PHP Notice
      Undefined variable: epages_api_url in wp-content/plugins/epages-online-shop/templates/popup.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can look at the official readme.txt

epages-online-shop/index.php 92% from 13 tests

"ePages Online Shop" version 5.0.20's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("epages-online-shop.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,870 lines of code in 63 files:
LanguageFilesBlank linesComment linesLines of code
PO File158848842,083
CSS541131,917
JavaScript513255815
SVG301715
JSON1500525
PHP1710355427
SQL14772262
Markdown1460112
YAML13014

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 complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.61MB with 0.42MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png214.16KB67.93KB▼ 68.28%
assets/screenshot-1.png410.87KB123.81KB▼ 69.87%