90% change-out-of-stock-text-for-woocommerce

Code Review | Change Out of Stock Text for Woocommerce

WordPress plugin Change Out of Stock Text for Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: change-out-of-sto...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: Nov 23, 2020
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: jo90 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,102 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.21ms] Passed 4 tests

A check of server-side resources used by Change Out of Stock Text for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.39 ▲2.01
Dashboard /wp-admin3.31 ▲0.0046.75 ▼5.41
Posts /wp-admin/edit.php3.36 ▲0.0049.71 ▲0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.27 ▼13.35
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▼2.51

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Change Out of Stock Text for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.121.67 ▼0.0749.82 ▲6.48
Dashboard /wp-admin2,195 ▲155.59 ▼0.0787.00 ▼4.0537.35 ▼5.11
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0140.58 ▲3.0837.33 ▲0.27
Add New Post /wp-admin/post-new.php1,537 ▲918.22 ▼4.84616.83 ▲0.2669.64 ▲19.28
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.02100.37 ▼14.6645.17 ▼1.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, change out of stock text

change-out-of-stock-text-for-woocommerce/change-out-of-stock-text-for-woocommerce.php Passed 13 tests

The main PHP script in "Change Out of Stock Text for Woocommerce" version 1.0.0 is automatically included on every request by WordPress
78 characters long description:
Change the text that describes product availability in your Woocommerce store.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected171 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP29831111
PO File1121960

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin