10% wpec-unicredit-pagonline

Code Review | WPEC Unicredit PagOnline

WordPress plugin WPEC Unicredit PagOnline scored 10% from 54 tests.

About plugin

  • Plugin page: wpec-unicredit-pa...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.3-3.8.3
  • WordPress version: 5.8.1
  • First release: Jun 7, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: iloveigloo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,089 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wpec-unicredit-pagonline/index.php+37
    copy(wp-content/plugins/pagonline/pagonline.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.01MB] [CPU: ▼139.91ms] Passed 4 tests

This is a short check of server-side resources used by WPEC Unicredit PagOnline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.96 ▲17.40
Dashboard /wp-admin3.07 ▲0.0153.41 ▲4.95
Posts /wp-admin/edit.php3.12 ▲0.0144.49 ▲3.52
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.15 ▼569.18
Media Library /wp-admin/upload.php3.01 ▲0.0133.91 ▲1.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPEC Unicredit PagOnline
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.38 ▲0.329.11 ▼1.6545.68 ▼0.48
Dashboard /wp-admin2,970 ▲335.87 ▼0.08134.05 ▼11.84111.38 ▼0.63
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0166.16 ▼3.2284.13 ▼5.61
Add New Post /wp-admin/post-new.php1,872 ▲37219.13 ▲0.61409.55 ▲32.61107.98 ▲3.35
Media Library /wp-admin/upload.php1,807 ▼05.07 ▲0.06158.84 ▲1.09117.74 ▲4.72

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wpec-unicredit-pagonline/index.php:29
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpec-unicredit-pagonline/index.php on line 23
    • > PHP Notice
      Undefined variable: num in wp-content/plugins/wpec-unicredit-pagonline/pagonline.php on line 3
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpec-unicredit-pagonline/index.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'wpsc_merchant' not found in wp-content/plugins/wpec-unicredit-pagonline/pagonline.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Settings) image not found
The official readme.txt might help

wpec-unicredit-pagonline/index.php 92% from 13 tests

"WPEC Unicredit PagOnline" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpec-unicredit-pagonline.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin256 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22310256

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png139.39KB47.61KB▼ 65.85%