83% paypal-currency-converter-basic-for-woocommerce

Code Review | PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE

WordPress plugin PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE scored 83% from 54 tests.

About plugin

  • Plugin page: paypal-currency-c...
  • Plugin version: 3.3.1 Basic...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: May 23, 2020
  • Number of updates: 43
  • Update frequency: every 54.7 days
  • Top authors: Henry Krupp (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active / 23,997 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.23MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2338.99 ▼3.61
Dashboard /wp-admin3.53 ▲0.2347.96 ▼1.88
Posts /wp-admin/edit.php3.65 ▲0.2944.57 ▼0.94
Add New Post /wp-admin/post-new.php6.11 ▲0.2386.25 ▼13.34
Media Library /wp-admin/upload.php3.46 ▲0.2338.50 ▲3.52

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.211.73 ▼0.4743.51 ▼8.82
Dashboard /wp-admin2,206 ▲185.85 ▼0.00102.99 ▼3.4139.70 ▼3.02
Posts /wp-admin/edit.php2,086 ▼02.00 ▼0.0436.63 ▼1.3232.29 ▼1.21
Add New Post /wp-admin/post-new.php1,547 ▲1418.34 ▼4.72610.26 ▼2.5145.14 ▼17.13
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0596.29 ▼18.2241.66 ▼5.56

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/paypal-currency-converter-basic-for-woocommerce/functions.php on line 9

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can take inspiration from this readme.txt

paypal-currency-converter-basic-for-woocommerce/paypalcc-basic.php 85% from 13 tests

The main file in "PAYPAL CURRENCY CONVERTER BASIC FOR WOOCOMMERCE" v. 3.3.1 Basic... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "3.3.1 Basic...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("paypal-currency-converter-basic-for-woocommerce.php" instead of "paypalcc-basic.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 plugin1,177 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22561451,078
JavaScript2152262
PO File191637

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity120.00
▷ Minimum class complexity120.00
▷ Maximum class complexity120.00
Average method complexity6.17
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/easycron-logo.png7.20KB2.84KB▼ 60.55%
assets/images/intelligent-it-logo.png8.89KB3.76KB▼ 57.70%
assets/images/PPCC-PRO-icon-36x36.png3.55KB2.02KB▼ 43.10%
assets/images/PPCC-PRO-icon-80x80.png13.44KB4.86KB▼ 63.82%