89% woo-accordions

Code Review | WooCommerce Accordions

WordPress plugin WooCommerce Accordions scored89%from 54 tests.

About plugin

  • Plugin page: woo-accordions
  • Plugin version: 1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2015
  • Latest release: Sep 4, 2023
  • Number of updates: 16
  • Update frequency: every 178.2 days
  • Top authors: Magnigenie (62.5%)sagarseth9 (43.75%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /17,701 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by WooCommerce Accordions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.20 ▼3.31
Dashboard /wp-admin3.31 ▲0.0047.39 ▼6.60
Posts /wp-admin/edit.php3.36 ▲0.0046.87 ▼1.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.69 ▼9.62
Media Library /wp-admin/upload.php3.23 ▲0.0034.80 ▲0.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WooCommerce Accordions: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.74 ▲0.171.97 ▲0.2241.75 ▼1.88
Dashboard /wp-admin2,198 ▲215.59 ▼0.0287.14 ▼3.0148.88 ▲2.86
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0040.77 ▲4.1537.36 ▼3.06
Add New Post /wp-admin/post-new.php1,527 ▲123.28 ▲0.25590.51 ▼99.1849.90 ▼1.48
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0898.09 ▼5.6543.18 ▲1.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% 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
7 plugin tags: accordion, accordion plugin, woocommerce accordion, woocommerce tabs accordion, woocommerce addon...

woo-accordions/wooatm.php 69% from 13 tests

Analyzing the main PHP file in "WooCommerce Accordions" version 1.2
You should first fix the following items:
  • 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: Name the main plugin file the same as the plugin slug ("woo-accordions.php" instead of "wooatm.php")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected325 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP43594191
JavaScript39069
CSS210065

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin