Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/new-order-popup/new-order-notification.php+123
Undefined variable: woo_fs
Server metrics [RAM: ▲4.62MB] [CPU: ▲17.68ms] Passed 4 tests
This is a short check of server-side resources used by New Order Notification
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.51 ▲5.00 | 62.36 ▲20.61 |
Dashboard /wp-admin | 8.53 ▲5.18 | 71.80 ▲14.69 |
Posts /wp-admin/edit.php | 8.53 ▲5.13 | 74.12 ▲20.24 |
Add New Post /wp-admin/post-new.php | 9.09 ▲3.16 | 124.79 ▲15.17 |
Media Library /wp-admin/upload.php | 8.53 ▲5.26 | 65.91 ▲29.54 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.53 | 58.25 |
New Order Popup /wp-admin/options-general.php?page=nop-notification-settings | 8.53 | 60.22 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 184 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
fs_accounts |
fs_debug_mode |
can_compress_scripts |
widget_recent-comments |
fs_active_plugins |
widget_theysaidso_widget |
fs_gdpr |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for New Order Notification
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.25 ▼0.15 | 1.56 ▼0.17 | 33.79 ▼13.09 |
Dashboard /wp-admin | 2,237 ▲57 | 5.70 ▲0.05 | 94.16 ▲4.75 | 39.80 ▼1.62 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.05 ▲0.08 | 34.34 ▼1.98 | 34.41 ▼8.93 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.02 ▼0.17 | 597.15 ▼75.54 | 59.70 ▼0.72 |
Media Library /wp-admin/upload.php | 1,439 ▲39 | 4.22 ▼0.07 | 101.43 ▼1.84 | 45.31 ▼0.35 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,092 | 1.77 | 27.23 | 29.74 |
New Order Popup /wp-admin/options-general.php?page=nop-notification-settings | 1,254 | 1.93 | 31.23 | 51.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/new-order-popup/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- fs_active_plugins
- fs_gdpr
- widget_theysaidso_widget
- fs_accounts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- fs_debug_mode
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/new-order-popup/admin/inc/nop-settings-page.php:12
- > PHP Fatal error
Uncaught Error: Class 'Nop_Notify_Template_Loader' not found in wp-content/plugins/new-order-popup/admin/classes/class-nop-template-loader.php:8
- > PHP Fatal error
Uncaught Error: Class 'Nop_Template_Loader' not found in wp-content/plugins/new-order-popup/nop-powerhouse.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/new-order-popup/templates/nop-render-popup.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: neworder, woocommerce, order, notification
new-order-popup/new-order-notification.php 62% from 13 tests
The entry point to "New Order Notification" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("new-order-popup.php" instead of "new-order-notification.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.2")
- Requires PHP: Required version must match the one declared in readme.txt ("5.3.8" instead of "5.6")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected31,680 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 7,347 | 16,402 | 30,919 |
CSS | 12 | 35 | 6 | 324 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 5 | 34 | 60 | 196 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,140 | |
▷ Static methods | 173 | 15.18% |
▷ Public methods | 797 | 69.91% |
▷ Protected methods | 18 | 1.58% |
▷ Private methods | 325 | 28.51% |
Functions | 104 | |
▷ Named functions | 104 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 124 | |
▷ Global constants | 99 | 79.84% |
▷ Class constants | 25 | 20.16% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/confetti.png | 38.69KB | 12.76KB | ▼ 67.01% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/woonewordernotification.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |