Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.74MB] [CPU: ▼57.14ms] Passed 4 tests
An overview of server-side resources used by Cart Notify
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 6.18 ▼45.24 |
Dashboard /wp-admin | 2.27 ▼1.03 | 7.31 ▼45.47 |
Posts /wp-admin/edit.php | 2.27 ▼1.08 | 7.49 ▼42.83 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 8.34 ▼95.02 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 8.47 ▼29.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
cart_notify_installed |
widget_recent-comments |
db_upgraded |
cart_notify_version |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Cart Notify
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 13.43 ▼0.97 | 9.39 ▲7.74 | 44.59 ▲0.84 |
Dashboard /wp-admin | 2,220 ▲43 | 5.66 ▼0.04 | 101.39 ▲6.31 | 49.51 ▲10.21 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▲0.01 | 38.08 ▲1.40 | 48.55 ▲11.64 |
Add New Post /wp-admin/post-new.php | 1,569 ▲29 | 23.24 ▼0.07 | 602.36 ▼42.70 | 59.44 ▲1.37 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.24 ▲0.03 | 100.86 ▼5.19 | 47.60 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cartnotifyadmin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- cart_notify_installed
- cart_notify_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot_1.png), #2 (Screenshot_2.png)
cart-notify/cartnotify.php 85% from 13 tests
The entry point to "Cart Notify" version 1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cart-notify.php" instead of "cartnotify.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
No dangerous file extensions were detected968 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 241 | 529 | 787 |
CSS | 2 | 30 | 6 | 116 |
JavaScript | 1 | 26 | 3 | 60 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 61 | |
▷ Static methods | 19 | 31.15% |
▷ Public methods | 58 | 95.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.92% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/cartnotify_layout_1.png | 10.29KB | 5.11KB | ▼ 50.39% |