Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼0.42ms] Passed 4 tests
Analyzing server-side resources used by NextBestOffer-OLS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.21 ▲2.11 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.12 ▲3.27 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.00 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.93 ▼1.20 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.78 ▲2.83 |
NextBestOffer Plugin /wp-admin/options-general.php?page=NextBestOffer_OLS_options | 3.34 | 29.95 |
Training Confirmation /wp-admin/admin.php?page=nextbestoffer_ols_confirmation | 3.27 | 31.38 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 15 new options
New WordPress options |
---|
NextBestOffer_OLS_min_support |
NextBestOffer_OLS_api_key |
theysaidso_admin_options |
NextBestOffer_OLS_selected_partial |
db_upgraded |
NextBestOffer_OLS_logs |
NextBestOffer_OLS_training_mode |
NextBestOffer_OLS_use_case |
NextBestOffer_OLS_min_confidence |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for NextBestOffer-OLS
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.44 ▼0.93 | 8.35 ▲6.62 | 42.70 ▲2.76 |
Dashboard /wp-admin | 2,206 ▲32 | 5.59 ▼0.01 | 84.30 ▼7.19 | 40.35 ▼4.55 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.07 | 35.60 ▲0.99 | 36.16 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.34 ▼4.61 | 610.27 ▼54.03 | 67.55 ▲11.52 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.15 ▼0.26 | 97.99 ▼6.76 | 40.15 ▼3.86 |
NextBestOffer Plugin /wp-admin/options-general.php?page=NextBestOffer_OLS_options | 853 | 2.05 | 24.00 | 27.23 |
Training Confirmation /wp-admin/admin.php?page=nextbestoffer_ols_confirmation | 788 | 2.04 | 23.48 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 15 options
- widget_recent-posts
- NextBestOffer_OLS_min_support
- NextBestOffer_OLS_selected_partial
- NextBestOffer_OLS_training_mode
- NextBestOffer_OLS_batch_size
- NextBestOffer_OLS_min_confidence
- db_upgraded
- NextBestOffer_OLS_api_key
- theysaidso_admin_options
- NextBestOffer_OLS_logs
- ...
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
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
The SRP test was a success
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: post-purchase suggestions, woocommerce extension, ai-powered, cross-selling, product recommendations
nextbestoffer-ols/NextBestOffer-OLS.php 85% from 13 tests
The main PHP file in "NextBestOffer-OLS" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("nextbestoffer-ols.php" instead of "NextBestOffer-OLS.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 155 characters long)
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
Good job! No executable or dangerous file extensions detected1,247 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 284 | 609 | 985 |
PO File | 1 | 62 | 78 | 205 |
CSS | 2 | 7 | 6 | 46 |
JavaScript | 2 | 4 | 28 | 11 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 10 | 18.87% |
▷ Public methods | 42 | 79.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 20.75% |
Functions | 3 | |
▷ Named functions | 3 | 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
PNG images were not found in this plugin