84% 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 scored 84% 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: 5.9.2
  • 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 / 290 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼291.34ms] Passed 4 tests

Server-side resources used by Abacus Menu Sync For Woo by App Domain
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0556.68 ▲7.21
Dashboard /wp-admin3.47 ▲0.0734.93 ▲0.40
Posts /wp-admin/edit.php3.70 ▲0.0638.31 ▲0.46
Add New Post /wp-admin/post-new.php6.96 ▼0.0397.80 ▼1,169.85
Media Library /wp-admin/upload.php3.35 ▲0.0626.51 ▲3.65
WC Abacus Menu /wp-admin/options-general.php?page=abacus_menu3.3223.93

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking 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 /3,768 ▲1415.88 ▼0.106.59 ▼0.152.39 ▼0.15
Dashboard /wp-admin2,897 ▲366.12 ▼0.01119.99 ▼20.31156.51 ▼8.12
Posts /wp-admin/edit.php2,693 ▲53.23 ▼0.0158.43 ▼4.51138.03 ▼2.85
Add New Post /wp-admin/post-new.php1,714 ▲5320.91 ▲4.89436.60 ▲31.63164.62 ▲12.15
Media Library /wp-admin/upload.php1,703 ▲55.54 ▲0.06138.93 ▼5.83185.49 ▲1.49
WC Abacus Menu /wp-admin/options-general.php?page=abacus_menu1,0932.4152.61135.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/abacus-menu-sync-for-woo/abacus-menu-sync-woo.php+47
    rmdir(wp-content/uploads/abacusmenu): Directory not empty

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: setting, admin, shop, order menu, themes...

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

"Abacus Menu Sync For Woo by App Domain" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
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

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for 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
There were not PNG files found in your plugin