84% wplit-woo-conditions-for-oxygen

Code Review | WPlit Woo Conditions for Oxygen

WordPress plugin WPlit Woo Conditions for Oxygen scored 84% from 54 tests.

About plugin

  • Plugin page: wplit-woo-conditi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2019
  • Latest release: Nov 14, 2019
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: wplit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active / 2,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by WPlit Woo Conditions for Oxygen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.02 ▼7.69
Dashboard /wp-admin3.31 ▲0.0143.53 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0049.38 ▲1.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.77 ▼11.22
Media Library /wp-admin/upload.php3.23 ▲0.0032.58 ▼1.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WPlit Woo Conditions for Oxygen
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.17 ▼1.581.82 ▲0.0642.13 ▼2.06
Dashboard /wp-admin2,203 ▲155.85 ▲0.95100.92 ▲0.9540.73 ▼4.62
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0241.38 ▲4.9435.10 ▼0.45
Add New Post /wp-admin/post-new.php1,523 ▼1023.32 ▲0.38675.35 ▲73.6557.63 ▼6.96
Media Library /wp-admin/upload.php1,391 ▼04.23 ▼0.19106.69 ▲6.7246.91 ▲1.37

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplit-woo-conditions-for-oxygen/lib/conditions.php:12

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 93% from 29 tests

readme.txt Passed 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
3 plugin tags: oxygen builder, woocommerce, oxygen

wplit-woo-conditions-for-oxygen/plugin.php 85% from 13 tests

"WPlit Woo Conditions for Oxygen" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wplit-woo-conditions-for-oxygen.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected463 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2316226463

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin