94% all-in-one-woo

Code Review | All in One Woo

WordPress plugin All in One Woo scored 94% from 54 tests.

About plugin

  • Plugin page: all-in-one-woo
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.5-5.5.3
  • WordPress version: 5.9.2
  • First release: Mar 24, 2019
  • Latest release: Dec 1, 2020
  • Number of updates: 36
  • Update frequency: every 17.2 days
  • Top authors: zakirstage (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 624 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼295.82ms] Passed 4 tests

This is a short check of server-side resources used by All in One Woo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1958.74 ▲10.25
Dashboard /wp-admin3.54 ▲0.1333.34 ▼0.38
Posts /wp-admin/edit.php3.77 ▲0.1338.90 ▲2.39
Add New Post /wp-admin/post-new.php7.01 ▲0.0396.44 ▼1,186.35
Media Library /wp-admin/upload.php3.42 ▲0.1225.16 ▲1.05

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for All in One Woo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲8315.78 ▲0.015.86 ▲0.072.60 ▲0.50
Dashboard /wp-admin2,904 ▲466.16 ▼0.03118.09 ▼20.58155.30 ▼6.08
Posts /wp-admin/edit.php2,667 ▼213.24 ▲0.0262.27 ▼1.50138.36 ▼4.53
Add New Post /wp-admin/post-new.php1,698 ▲3720.59 ▲4.53450.51 ▲27.25155.10 ▲4.31
Media Library /wp-admin/upload.php1,710 ▲125.54 ▲0.00141.97 ▲2.77185.79 ▲1.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/misc.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/all-in-one-woo/public/css/css.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/product-tab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/tracking.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/checkout-tab.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/my-account.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/color-tab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/cart-tab.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/all-in-one-woo/includes/default-values.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-woo/includes/rename-labels.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: woocommerce shop, woocommerce text, sale, store, sell...

all-in-one-woo/all-in-one-woo.php 92% from 13 tests

"All in One Woo" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.1" instead of "2.5.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,577 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP121581011,516
JavaScript26439
CSS11022

PHP code Passed 2 tests

This is a short overview 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 code0.37
Average class complexity93.00
▷ Minimum class complexity93.00
▷ Maximum class complexity93.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods25.56%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin