Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.31ms] Passed 4 tests
Server-side resources used by Stock Message
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.61 ▼3.15 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.96 ▼2.62 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.16 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.37 ▼18.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 41.39 ▲6.28 |
Stock Message /wp-admin/admin.php?page=woocommerce-custom-stock-message | 3.23 | 33.53 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
woocommerce-custom-stock-message__in-stock-message |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
woocommerce-custom-stock-message__out-of-stock-message |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Stock Message
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.13 | 2.16 ▲0.42 | 45.43 ▼1.65 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▲0.08 | 85.99 ▼5.88 | 44.20 ▼3.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.02 | 39.48 ▼2.82 | 38.06 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.51 ▼0.01 | 685.59 ▲9.93 | 61.93 ▲7.95 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.22 ▲0.00 | 94.49 ▼5.26 | 43.93 ▲3.33 |
Stock Message /wp-admin/admin.php?page=woocommerce-custom-stock-message | 832 | 1.99 | 25.22 | 41.43 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/stock-message/index.php
- > /wp-content/plugins/stock-message/stock-message.php
- > /wp-content/plugins/stock-message/four_zero_four.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/stock-message/admin-contorl-form.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=woocommerce-custom-stock-message
- > Network (severe)
wp-content/plugins/woocommerce-custom-stock-message/bootstrap-3.3.5/css/bootstrap.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=woocommerce-custom-stock-message
- > Network (severe)
wp-content/plugins/woocommerce-custom-stock-message/bootstrap-3.3.5/css/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Out Of Stock Message), #2 (In Stock Message), #3 (Admin Panel)
stock-message/stock-message.php Passed 13 tests
The primary PHP file in "Stock Message" version 1.1.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
Customize your out of stock message and get you visitors engaged.
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 detected9,379 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 9 | 22 | 7,388 |
JavaScript | 3 | 582 | 199 | 1,602 |
SVG | 1 | 0 | 0 | 288 |
PHP | 4 | 39 | 24 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin