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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▲1.71ms] Passed 4 tests
An overview of server-side resources used by PayJustNow for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 46.38 ▲4.74 |
Dashboard /wp-admin | 3.34 ▲0.03 | 56.50 ▲4.39 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.08 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 98.58 ▲2.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.78 ▲1.15 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PayJustNow for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼0 | 13.13 ▼1.27 | 1.85 ▼0.07 | 44.34 ▼0.37 |
Dashboard /wp-admin | 2,206 ▼3 | 5.80 ▼0.12 | 96.71 ▼14.27 | 40.24 ▼5.10 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.02 ▼0.02 | 39.68 ▼1.12 | 34.98 ▼3.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.32 ▲0.08 | 650.71 ▲21.41 | 47.95 ▼15.92 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.18 ▼0.05 | 95.39 ▼12.57 | 43.22 ▼1.92 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: payjustnow, woocommerce, south african payment gateway
payjustnow-for-woocommerce/woocommerce-gateway-payjustnow.php 92% from 13 tests
"PayJustNow for WooCommerce" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("payjustnow-for-woocommerce.php" instead of "woocommerce-gateway-payjustnow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,010 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 167 | 102 | 706 |
CSS | 2 | 105 | 43 | 303 |
JavaScript | 1 | 1 | 8 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 6.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payjustnow_logo_dark_theme.png | 5.14KB | 3.37KB | ▼ 34.39% |
assets/images/tickbox.png | 0.80KB | 0.46KB | ▼ 42.84% |
assets/images/VectorStep4.png | 1.57KB | 0.74KB | ▼ 52.82% |
assets/images/VectorTick.png | 0.27KB | 0.22KB | ▼ 18.35% |
assets/images/VectorStep1.png | 2.36KB | 1.03KB | ▼ 56.30% |