74% abacus-menu-sync-for-woo

Code Review | Abacus Menu Sync For Woo by App Domain

WordPress plugin Abacus Menu Sync For Woo by App Domain scored74%from 54 tests.

About plugin

  • Plugin page: abacus-menu-sync-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Jan 9, 2020
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: appdomain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /499 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.31ms] Passed 4 tests

Analyzing server-side resources used by Abacus Menu Sync For Woo by App Domain
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.57 ▲4.07
Dashboard /wp-admin3.37 ▲0.0650.36 ▲1.71
Posts /wp-admin/edit.php3.42 ▲0.0644.71 ▼2.53
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.00 ▼2.03
Media Library /wp-admin/upload.php3.29 ▲0.0640.59 ▲6.56
WC Abacus Menu /wp-admin/options-general.php?page=abacus_menu3.2629.58

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Abacus Menu Sync For Woo by App Domain
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.64 ▼1.114.91 ▲3.2342.80 ▲0.04
Dashboard /wp-admin2,207 ▲165.86 ▲0.9899.11 ▼2.8037.84 ▼5.04
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0736.85 ▼2.8336.40 ▲0.11
Add New Post /wp-admin/post-new.php1,531 ▼1123.62 ▲5.23686.84 ▲13.2353.53 ▼12.44
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.00106.29 ▲5.0744.58 ▼1.90
WC Abacus Menu /wp-admin/options-general.php?page=abacus_menu8502.0323.0127.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/abacus-menu-sync-for-woo/abacus-menu-sync-woo.php+47
    rmdir(wp-content/uploads/abacusmenu): Directory not empty
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/abacus-menu-sync-for-woo/abacus-menu-sync-woo.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: order menu, setting, woocommerce category, shop, woocommerce products...

abacus-menu-sync-for-woo/abacus-menu-sync-woo.php 92% from 13 tests

The entry point to "Abacus Menu Sync For Woo by App Domain" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("abacus-menu-sync-for-woo.php" instead of "abacus-menu-sync-woo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected268 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected