Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.94ms] Passed 4 tests
Server-side resources used by NIP24 for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.65 ▼6.47 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.16 ▼5.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.57 ▲1.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.25 ▼3.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.04 ▼0.21 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for NIP24 for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.19 | 1.61 ▼0.16 | 41.47 ▼4.49 |
Dashboard /wp-admin | 2,206 ▲18 | 5.89 ▲1.01 | 98.00 ▼14.44 | 38.94 ▼10.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.02 | 35.95 ▼2.18 | 31.51 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 20.90 ▼2.04 | 680.51 ▲81.52 | 47.90 ▼1.96 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.13 ▼0.27 | 113.22 ▲11.41 | 47.37 ▲3.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'NIP24\\InvoiceData' not found in wp-content/plugins/gus-api-nip24pl/NIP24/AllData.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
gus-api-nip24pl/gus-api-nip24pl.php Passed 13 tests
"NIP24 for WooCommerce" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Plugin that integrates WooCommerce with NIP24 Service.
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
No dangerous file extensions were detected1,958 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 604 | 964 | 1,857 |
PO File | 1 | 22 | 25 | 64 |
JavaScript | 1 | 7 | 19 | 34 |
CSS | 1 | 1 | 14 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 1 | 5.26% |
Methods | 77 | |
▷ Static methods | 17 | 22.08% |
▷ Public methods | 60 | 77.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 22.08% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 91 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 91 | 100.00% |
▷ Public constants | 91 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 28.27KB | 10.96KB | ▼ 61.23% |