78% konora-paypal

Code Review | Konora paypal

WordPress plugin Konora paypal scored78%from 54 tests.

About plugin

  • Plugin page: konora-paypal
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Apr 7, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: DMK-RC (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 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.01MB] [CPU: ▼6.73ms] Passed 4 tests

An overview of server-side resources used by Konora paypal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.20 ▼2.77
Dashboard /wp-admin3.31 ▲0.0144.88 ▼7.84
Posts /wp-admin/edit.php3.36 ▲0.0142.81 ▼6.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.92 ▼9.92
Media Library /wp-admin/upload.php3.24 ▲0.0133.06 ▼2.58

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

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

Browser metrics Passed 4 tests

Konora paypal: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.27 ▼1.114.10 ▲2.3644.06 ▼3.24
Dashboard /wp-admin2,232 ▲415.90 ▼0.1995.55 ▼8.2676.99 ▲35.35
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0135.18 ▼7.0832.26 ▼4.14
Add New Post /wp-admin/post-new.php1,542 ▲423.12 ▲4.56731.50 ▲115.7954.29 ▼14.02
Media Library /wp-admin/upload.php1,416 ▲254.25 ▲0.0393.41 ▼4.3175.57 ▲33.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/konora-paypal/stripe.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_file() in wp-content/plugins/konora-paypal/cancellafile.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/konora-paypal/konora-paypal.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: Please take inspiration from this readme.txt

konora-paypal/konora-paypal.php Passed 13 tests

The primary PHP file in "Konora paypal" version 1.6 is used by WordPress to initiate all plugin functionality
40 characters long description:
Personalizza il tuo pagamento con paypal

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin4,063 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS5154992,751
PHP313397728
SVG100565
JavaScript141719

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin