Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.68ms] Passed 4 tests
An overview of server-side resources used by Newebpay Payment
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.85 ▼2.83 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.16 ▼1.12 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.33 ▼1.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 103.50 ▲6.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.59 ▼1.17 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Newebpay Payment: 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,800 ▲65 | 13.23 ▼1.13 | 1.52 ▼0.47 | 40.41 ▼5.12 |
Dashboard /wp-admin | 2,203 ▲21 | 4.86 ▼0.05 | 103.03 ▼4.72 | 38.67 ▼5.57 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.96 ▼0.06 | 40.57 ▲0.95 | 34.36 ▼4.11 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.81 ▼5.81 | 595.11 ▼111.02 | 48.14 ▼4.19 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.05 | 96.57 ▼12.36 | 40.79 ▼5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant NEWEB_MAIN_PATH - assumed 'NEWEB_MAIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/newebpay-payment/includes/nwp/nwpMPG.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'NEWEB_MAIN_PATH/includes/nwp/baseNwpMPG.php' (include_path='.:/usr/share/php') in wp-content/plugins/newebpay-payment/includes/nwp/nwpMPG.php on line 2
- > PHP Warning
require_once(NEWEB_MAIN_PATH/includes/nwp/baseNwpMPG.php): failed to open stream: No such file or directory in wp-content/plugins/newebpay-payment/includes/nwp/nwpMPG.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_newebpay' not found in wp-content/plugins/newebpay-payment/includes/api/nwpOthersAPI.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/newebpay-payment/includes/nwp/baseNwpMPG.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Requires php: Version not formatted correctly
newebpay-payment/Central.php 92% from 13 tests
The main file in "Newebpay Payment" v. 1.0.4 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: It is recommended to name the main PHP file as the plugin slug ("newebpay-payment.php" instead of "Central.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 plugin1,657 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 206 | 225 | 1,342 |
JavaScript | 3 | 31 | 1 | 315 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 3 | 5.88% |
▷ Public methods | 34 | 66.67% |
▷ Protected methods | 2 | 3.92% |
▷ Private methods | 15 | 29.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon/newebpay.png | 3.79KB | 2.76KB | ▼ 27.27% |