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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.37ms] Passed 4 tests
Analyzing server-side resources used by Add To Cart Notifications
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.34 ▲0.34 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.69 ▼3.91 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.76 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 91.61 ▼14.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.44 ▲5.86 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Add To Cart Notifications
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲212 | 13.57 ▼0.72 | 11.32 ▲9.39 | 37.55 ▼11.31 |
Dashboard /wp-admin | 2,239 ▲36 | 4.84 ▼0.03 | 100.36 ▼11.08 | 35.97 ▼6.55 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.02 ▼0.01 | 34.13 ▼5.78 | 36.53 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,570 ▲25 | 18.14 ▼5.01 | 610.41 ▼15.31 | 67.07 ▲11.62 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.19 ▼0.03 | 103.10 ▼9.25 | 46.72 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 1× 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/woo-add-to-cart-notifications/woocommerce-add-to-cart-notifications.php:67
- > 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 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
- Donate link: Please fix this invalid url: "paypal.me/penguinarts"
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in woo-add-to-cart-notifications/assets to your readme.txt
woo-add-to-cart-notifications/woocommerce-add-to-cart-notifications.php 92% from 13 tests
The principal PHP file in "Add To Cart Notifications" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("woo-add-to-cart-notifications.php" instead of "woocommerce-add-to-cart-notifications.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,676 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
CSS | 4 | 37 | 13 | 617 |
PHP | 1 | 310 | 37 | 227 |
JavaScript | 2 | 8 | 5 | 161 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin