78% easy-pixels-ecommerce-extension-by-jevnet

Code Review | Easy Pixels eCommerce extension

WordPress plugin Easy Pixels eCommerce extension scored78%from 54 tests.

About plugin

  • Plugin page: easy-pixels-ecomm...
  • Plugin version: 2.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 2, 2019
  • Latest release: Apr 7, 2022
  • Number of updates: 49
  • Update frequency: every 19.4 days
  • Top authors: jevnet (69.39%)sperpina (32.65%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,749 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests

Server-side resources used by Easy Pixels eCommerce extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.16 ▲1.22
Dashboard /wp-admin3.34 ▲0.0451.14 ▼2.93
Posts /wp-admin/edit.php3.39 ▲0.0347.58 ▼2.02
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.06 ▼20.54
Media Library /wp-admin/upload.php3.26 ▲0.0339.62 ▲4.44

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Easy Pixels eCommerce extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.28 ▼0.071.92 ▲0.3044.15 ▼2.10
Dashboard /wp-admin2,203 ▲265.51 ▼0.1490.02 ▼2.0939.73 ▼7.34
Posts /wp-admin/edit.php2,109 ▲91.99 ▼0.0434.82 ▼1.1835.96 ▲0.14
Add New Post /wp-admin/post-new.php1,537 ▲1123.71 ▲0.65682.03 ▼2.1554.93 ▼11.76
Media Library /wp-admin/upload.php1,414 ▲174.22 ▲0.01109.53 ▲5.3746.22 ▼0.10

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/easyPixelsWC.php
  • 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/admin/easyPixelsWCAdmin.php:35
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-gads.php on line 5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-facebook.php on line 5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-facebook.php on line 5
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-gads.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/admin/page-easyPixelsWCAdmin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'jn_Facebook' not found in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-facebook.php:103
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-bing.php on line 3
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-analytics.php on line 3
    • > PHP Warning
      Creating default object from empty value in wp-content/plugins/easy-pixels-ecommerce-extension-by-jevnet/classes/easy-gtm.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #2 (Google Ads Section)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

easy-pixels-ecommerce-extension-by-jevnet/easyPixelsWC.php 92% from 13 tests

The main PHP file in "Easy Pixels eCommerce extension" ver. 2.12 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-pixels-ecommerce-extension-by-jevnet.php" instead of "easyPixelsWC.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
Everything looks great! No dangerous files found in this plugin947 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213562743
PO File24869204

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity2.20
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions51
▷ Named functions1325.49%
▷ Anonymous functions3874.51%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin