Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼141.22ms] Passed 4 tests
Analyzing server-side resources used by Store Notification | Show Discount Deal, Timer, Notification for your WordPress Store
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 37.32 ▲5.16 |
Dashboard /wp-admin | 3.15 ▲0.09 | 45.00 ▼5.61 |
Posts /wp-admin/edit.php | 3.26 ▲0.14 | 44.32 ▼11.85 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 98.87 ▼548.75 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 36.80 ▲1.34 |
Store Notification /wp-admin/options-general.php?page=store-notification | 3.18 | 33.67 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Store Notification | Show Discount Deal, Timer, Notification for your WordPress Store: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,039 ▲417 | 16.65 ▲0.71 | 17.70 ▲7.62 | 64.18 ▲15.12 |
Dashboard /wp-admin | 3,016 ▲79 | 6.92 ▲0.98 | 146.78 ▼21.93 | 117.54 ▲1.85 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 3.15 ▲0.33 | 69.86 ▲2.32 | 122.61 ▲25.33 |
Add New Post /wp-admin/post-new.php | 1,701 ▲110 | 18.73 ▼0.08 | 384.19 ▼3.24 | 122.67 ▲8.56 |
Media Library /wp-admin/upload.php | 1,852 ▲45 | 5.43 ▲0.42 | 143.19 ▼14.02 | 121.45 ▲1.61 |
Store Notification /wp-admin/options-general.php?page=store-notification | 1,722 | 2.97 | 92.08 | 93.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-notification/includes/admin/class-store-notification-admin-assets.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-notification/includes/class-store-notification-assets.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: discount, wc, ecommerce, store, edd...
store-notification/store-notification.php 92% from 13 tests
The main file in "Store Notification | Show Discount Deal, Timer, Notification for your WordPress Store" v. 1.0.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:
- Description: Keep the plugin description shorter than 140 characters (currently 232 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
Everything looks great! No dangerous files found in this plugin1,532 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 416 | 529 | 1,347 |
CSS | 1 | 24 | 0 | 116 |
JavaScript | 2 | 28 | 1 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 16.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 4 | 40.00% |
Methods | 72 | |
▷ Static methods | 17 | 23.61% |
▷ Public methods | 59 | 81.94% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 18.06% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
No PNG files were detected