10% easy-paypal-lte

Code Review | EZ PayPal

WordPress plugin EZ PayPal scored10%from 54 tests.

About plugin

  • Plugin page: easy-paypal-lte
  • Plugin version: 7.90
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Jun 29, 2012
  • Latest release: Oct 12, 2016
  • Number of updates: 297
  • Update frequency: every 6.3 days
  • Top authors: manojtd (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

60+ active /70,351 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/easy-paypal-lte/admin/Installer.php+100
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.73ms] Passed 4 tests

Server-side resources used by EZ PayPal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.41 ▼4.14
Dashboard /wp-admin3.31 ▲0.0046.40 ▼1.93
Posts /wp-admin/edit.php3.36 ▲0.0043.20 ▼1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.77 ▼15.64
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▼0.54

Server storage [IO: ▲2.69MB] [DB: ▲0.32MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 173 new files
Database: 6 new tables, 6 new options
New tables
wp_ezpp_products
wp_ezpp_product_meta
wp_ezpp_categories
wp_ezpp_templates
wp_ezpp_options_meta
wp_ezpp_administrator
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for EZ PayPal
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.25 ▼0.341.89 ▲0.2040.59 ▼0.07
Dashboard /wp-admin2,195 ▲215.55 ▼0.0383.98 ▼2.8038.29 ▼1.80
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0433.97 ▼3.6334.29 ▼0.85
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▲0.14672.38 ▲6.9658.08 ▲0.71
Media Library /wp-admin/upload.php1,397 ▼64.23 ▲0.03108.40 ▲13.9347.00 ▲4.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 6 tables in the database
    • wp_ezpp_products
    • wp_ezpp_options_meta
    • wp_ezpp_templates
    • wp_ezpp_categories
    • wp_ezpp_product_meta
    • wp_ezpp_administrator
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 59× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/easy-paypal-lte/admin/advanced.php
    • > /wp-content/plugins/easy-paypal-lte/admin/profile.php
    • > /wp-content/plugins/easy-paypal-lte/admin/products.php
    • > /wp-content/plugins/easy-paypal-lte/ajax/success.php
    • > /wp-content/plugins/easy-paypal-lte/admin/index.php
    • > /wp-content/plugins/easy-paypal-lte/admin/products-edit.php
    • > /wp-content/plugins/easy-paypal-lte/index.php
    • > /wp-content/plugins/easy-paypal-lte/admin/stats.php
    • > /wp-content/plugins/easy-paypal-lte/footer.php
    • > /wp-content/plugins/easy-paypal-lte/server.php
  • 65× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-paypal-lte/ezKillLite.php on line 21
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-paypal-lte/ezKillLite.php on line 21
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100
    • > PHP Fatal error
      Uncaught Error: Class 'EZ' not found in wp-content/plugins/easy-paypal-lte/admin/tour.php:2
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/easy-paypal-lte/admin/Installer.php on line 100

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Dashboard, showing the beautifully designed admin interface.), #2 (Tour and Help, to quickly get started with EZ PayPal.), #3 (Editable product listing on your admin page. The table is sortable and searchable.), #4 (Managing your product categories, showing how to edit an attribute.), #5 (Configuration screen. Note the help popover showing what the option means and does.), #6 (Managing your account profile, password etc.), #7 (Your automatically generated e-shop. Your products are listed in a neat, sortable, searchable table with a "Buy Now" button.), #8 (The screen resulting from a "Buy Now" button click.), #9 (The return screen after a successful purchase. This is the download page where your buyer is automatically forwarded to.), #10 (The return screen if the IPN message hasn't been posted. If the PayPal information is not yet received by your server, your buyer sees this screen where he can retrieve his purchase link. (This feature reduced my support load by 90%).), #11 (Advanced shop configuration.), #12 (Your e-shop, using a dark theme and grid view.), #13 (Sales charts in the Pro version.), #14 (Sales summary and details.), #15 (Subscription summary and details in the Pro version.), #16 (Template editor in the Pro version.)
You can take inspiration from this readme.txt

easy-paypal-lte/easy-paypal.php 85% from 13 tests

The principal PHP file in "EZ PayPal" v. 7.90 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-paypal-lte.php" instead of "easy-paypal.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)

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
No dangerous file extensions were detected13,035 lines of code in 111 files:
LanguageFilesBlank linesComment linesLines of code
PHP877382159,413
CSS11208971,874
JavaScript109090845
SVG200749
SQL190154

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity43.63
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods289
▷ Static methods10335.64%
▷ Public methods28096.89%
▷ Protected methods00.00%
▷ Private methods93.11%
Functions50
▷ Named functions50100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
37 compressed PNG files occupy 0.96MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-8.png14.14KB14.75KB0.00%
admin/img/spritemap.png9.97KB9.37KB▼ 5.99%
screenshot-13.png86.51KB89.83KB0.00%
admin/img/star-on.png0.62KB0.61KB▼ 1.58%
assets/checkout-header.png19.44KB7.67KB▼ 60.55%