10% cyklodev-wp-paypal-integration

Code Review | Cyklodev WP Paypal Integration

WordPress plugin Cyklodev WP Paypal Integration scored 10% from 54 tests.

About plugin

  • Plugin page: cyklodev-wp-paypa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Jan 23, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 3
  • Update frequency: every 75.3 days
  • Top authors: zephilou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 672 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/cyklodev-wp-paypal-integration/index.php+18
    Use of undefined constant ckd_esc - assumed 'ckd_esc' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.87MB] [CPU: ▼194.17ms] Passed 4 tests

An overview of server-side resources used by Cyklodev WP Paypal Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼1.075.25 ▼29.69
Dashboard /wp-admin1.78 ▼1.274.65 ▼51.89
Posts /wp-admin/edit.php1.78 ▼1.326.10 ▼36.81
Add New Post /wp-admin/post-new.php1.78 ▼3.655.14 ▼658.27
Media Library /wp-admin/upload.php1.78 ▼1.225.81 ▼29.62

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_cyklodev_paypal

Browser metrics Passed 4 tests

Cyklodev WP Paypal Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲13115.88 ▲0.367.15 ▼2.9453.41 ▲5.08
Dashboard /wp-admin3,004 ▲705.85 ▼0.19147.15 ▼26.89113.94 ▼5.29
Posts /wp-admin/edit.php2,773 ▲342.82 ▲0.0166.17 ▼1.6393.03 ▼2.61
Add New Post /wp-admin/post-new.php1,705 ▲2218.78 ▲0.05389.16 ▼4.72115.28 ▲2.04
Media Library /wp-admin/upload.php1,841 ▲345.01 ▼0.01177.41 ▲9.15135.13 ▲6.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/cyklodev-wp-paypal-integration/index.php+18
    Use of undefined constant ckd_esc - assumed 'ckd_esc' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_cyklodev_paypal

Smoke tests 75% 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 50% 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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cyklodev-wp-paypal-integration/index.php
    • > /wp-content/plugins/cyklodev-wp-paypal-integration/views/widget-paypal.php
    • > /wp-content/plugins/cyklodev-wp-paypal-integration/views/paypal.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shortcode, widget, paypal, plugin

cyklodev-wp-paypal-integration/index.php 92% from 13 tests

The main PHP script in "Cyklodev WP Paypal Integration" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cyklodev-wp-paypal-integration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35035172

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/cyklodev.png12.79KB6.17KB▼ 51.73%