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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.96 ▲17.40 |
Dashboard /wp-admin | 3.07 ▲0.01 | 53.41 ▲4.95 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.49 ▲3.52 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.15 ▼569.18 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.38 ▲0.32 | 9.11 ▼1.65 | 45.68 ▼0.48 |
Dashboard /wp-admin | 2,970 ▲33 | 5.87 ▼0.08 | 134.05 ▼11.84 | 111.38 ▼0.63 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.01 | 66.16 ▼3.22 | 84.13 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,872 ▲372 | 19.13 ▲0.61 | 409.55 ▲32.61 | 107.98 ▲3.35 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.07 ▲0.06 | 158.84 ▲1.09 | 117.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 23 | 10 | 256 |
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 code | 0.40 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 139.39KB | 47.61KB | ▼ 65.85% |