90% zero-to-free-text

Code Review | Zero to free text

WordPress plugin Zero to free text scored90%from 54 tests.

About plugin

  • Plugin page: zero-to-free-text
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Oct 20, 2017
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: codeaffairs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Zero to free text
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.77 ▲0.71
Dashboard /wp-admin3.31 ▲0.0151.30 ▼0.12
Posts /wp-admin/edit.php3.36 ▲0.0052.36 ▼11.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.41 ▼0.81
Media Library /wp-admin/upload.php3.24 ▲0.0038.31 ▲2.17

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Zero to free text
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.191.91 ▲0.2842.11 ▼2.03
Dashboard /wp-admin2,195 ▲155.59 ▼0.0791.46 ▼2.9843.58 ▲0.86
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0040.42 ▼9.5735.31 ▼4.78
Add New Post /wp-admin/post-new.php1,526 ▼223.52 ▲0.55613.61 ▼81.8654.99 ▲1.85
Media Library /wp-admin/upload.php1,403 ▼04.17 ▲0.02107.11 ▲5.0143.59 ▼1.96

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: woocommerce zero price, woocommerce free, zero to free text, woocommerce free price text

zero-to-free-text/zero-to-free-text.php Passed 13 tests

"Zero to free text" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
For woocommerce change product price 0 value to free text.

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
No dangerous file extensions were detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.83
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin