Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/woocommerce-netsaxept/netaxept/ClassOrder.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; Order has a deprecated constructor
Server metrics [RAM: ▼1.94MB] [CPU: ▼61.27ms] Passed 4 tests
Server-side resources used by Woocommerce Netaxept
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.55 ▼40.96 |
Dashboard /wp-admin | 2.09 ▼1.26 | 5.53 ▼59.57 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 5.13 ▼48.67 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.81 | 7.14 ▼95.89 |
Media Library /wp-admin/upload.php | 2.09 ▼1.15 | 7.50 ▼29.47 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Woocommerce Netaxept: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲54 | 14.23 ▼0.13 | 1.67 ▼0.05 | 41.38 ▼14.62 |
Dashboard /wp-admin | 2,195 ▲15 | 5.59 ▼0.06 | 97.63 ▲8.69 | 42.85 ▲1.42 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.08 | 39.25 ▲2.07 | 36.24 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.06 ▲4.77 | 666.05 ▲16.05 | 57.84 ▼17.23 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.22 ▲0.01 | 108.33 ▲2.61 | 45.19 ▼0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/woocommerce-netsaxept/netaxept/ClassOrder.php+3
Methods with the same name as their class will not be constructors in a future version of PHP; Order has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woocommerce-netsaxept/init.php:13
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woocommerce-netsaxept/wc-nets-gateway.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: payment gateway, woocommerce netaxept, woocommerce extension
woocommerce-netsaxept/init.php 92% from 13 tests
The main file in "Woocommerce Netaxept" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-netsaxept.php" instead of "init.php")
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
Everything looks great! No dangerous files found in this plugin452 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 134 | 66 | 452 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 41.28KB | 19.48KB | ▼ 52.80% |
assets/screenshot-3.PNG | 42.41KB | 18.90KB | ▼ 55.42% |
assets/screenshot-4.PNG | 90.28KB | 30.51KB | ▼ 66.20% |
assets/screenshot-1.PNG | 46.77KB | 18.79KB | ▼ 59.82% |