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.10MB] [CPU: ▼1.65ms] Passed 4 tests
A check of server-side resources used by Out of Stock Message for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 36.37 ▼2.63 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.21 ▼0.60 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.86 ▲4.76 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.17 ▼8.14 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.36 ▲5.85 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Out of Stock Message for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.19 ▼1.11 | 1.66 ▼0.04 | 40.73 ▼6.14 |
Dashboard /wp-admin | 2,226 ▲41 | 5.90 ▲1.04 | 101.02 ▼4.49 | 42.41 ▲3.96 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.16 ▲0.17 | 41.69 ▲5.26 | 36.80 ▲2.42 |
Add New Post /wp-admin/post-new.php | 1,557 ▲38 | 18.07 ▼4.98 | 629.88 ▲16.99 | 64.98 ▲23.86 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.21 ▼0.01 | 103.98 ▼0.85 | 43.90 ▲0.69 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wc-out-of-stock-message/widget-out-of-stock.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Requires at least: Invalid version format
wc-out-of-stock-message/out-of-stock-msg.php 69% from 13 tests
The main file in "Out of Stock Message for WooCommerce" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-out-of-stock-message.php" instead of "out-of-stock-msg.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 494 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin1,077 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 197 | 240 | 860 |
JavaScript | 4 | 15 | 16 | 215 |
CSS | 2 | 0 | 10 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin