Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/abeta-punchout/abeta-po.php+109
Non-static method ABETA_PO_Activator::activate() should not be called statically
Server metrics [RAM: ▼0.02MB] [CPU: ▼309.76ms] Passed 4 tests
A check of server-side resources used by Abeta OCI PunchOut
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 63.54 ▲14.20 |
Dashboard /wp-admin | 3.42 ▲0.01 | 34.11 ▼47.15 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.36 ▼3.18 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 94.01 ▼1,191.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.35 ▲2.44 |
Server storage [IO: ▲3.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 178 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_active_plugins |
Activated_Abeta_OCI_PunchOut |
fs_gdpr |
fs_accounts |
ABETA_PO_sso_app_token |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for Abeta OCI PunchOut
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲73 | 15.83 ▲0.05 | 6.00 ▲0.04 | 3.00 ▲0.61 |
Dashboard /wp-admin | 2,889 ▲28 | 6.15 ▼0.06 | 123.62 ▼10.32 | 194.05 ▲28.02 |
Posts /wp-admin/edit.php | 2,691 ▼11 | 3.24 ▲0.19 | 63.47 ▼25.71 | 138.62 ▼33.08 |
Add New Post /wp-admin/post-new.php | 1,696 ▲35 | 21.14 ▲3.82 | 446.20 ▲6.87 | 215.83 ▲49.99 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.54 ▲0.05 | 141.23 ▼11.38 | 237.04 ▲44.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- fs_accounts
- fs_gdpr
- fs_active_plugins
- fs_debug_mode
- Activated_Abeta_OCI_PunchOut
- ABETA_PO_sso_app_token
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/abeta-punchout/freemius/templates/ajax-loader.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/abeta-punchout/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/abeta-punchout/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: woocommerce, oci, abeta, punchout
abeta-punchout/abeta-po.php 92% from 13 tests
The entry point to "Abeta OCI PunchOut" version 0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("abeta-punchout.php" instead of "abeta-po.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected31,063 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 7,364 | 16,378 | 30,799 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 7 | 70 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,885)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 78.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,885.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,165 | |
▷ Static methods | 174 | 14.94% |
▷ Public methods | 820 | 70.39% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 330 | 28.33% |
Functions | 98 | |
▷ Named functions | 97 | 98.98% |
▷ Anonymous functions | 1 | 1.02% |
Constants | 135 | |
▷ Global constants | 108 | 80.00% |
▷ Class constants | 27 | 20.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/abeta-punchout.png | 9.16KB | 5.26KB | ▼ 42.58% |