90% wp-export-menus

Code Review | Export WordPress Menus

WordPress plugin Export WordPress Menus scored 90% from 54 tests.

About plugin

  • Plugin page: wp-export-menus
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.4-5.7
  • WordPress version: 5.8.1
  • First release: Aug 29, 2017
  • Latest release: Mar 12, 2021
  • Number of updates: 22
  • Update frequency: every 58.7 days
  • Top authors: MoxaJogani (59.09%)tychesoftwares (40.91%)ashokrane (9.09%)

Code review

54 tests

User reviews

23 reviews

Install metrics

4,000+ active / 49,238 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Export WordPress Menus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1833.56 ▲12.94
Dashboard /wp-admin3.13 ▲0.0745.14 ▲2.10
Posts /wp-admin/edit.php3.18 ▲0.0741.69 ▲7.75
Add New Post /wp-admin/post-new.php5.48 ▲0.0589.41 ▼564.86
Media Library /wp-admin/upload.php3.07 ▲0.0730.68 ▼3.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
wem_version

Browser metrics Passed 4 tests

An overview of browser requirements for Export WordPress Menus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲10116.08 ▲0.529.22 ▲1.0652.09 ▲4.11
Dashboard /wp-admin2,976 ▲426.12 ▲0.11135.58 ▼11.16107.17 ▼5.26
Posts /wp-admin/edit.php2,742 ▲32.71 ▲0.0064.12 ▼4.0891.02 ▲2.41
Add New Post /wp-admin/post-new.php1,618 ▲12021.46 ▲2.66278.88 ▼87.75108.93 ▲1.01
Media Library /wp-admin/upload.php1,810 ▼05.04 ▼0.00142.35 ▼3.56121.25 ▼3.71

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • wem_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
No output text or server-side errors detected 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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: menus, wordpress, wordpress menus, exporter, export

wp-export-menus/wp-export-menus.php Passed 13 tests

The main file in "Export WordPress Menus" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Export your WordPress menus.

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
There were no executable files found in this plugin368 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141118344
PO File15724

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods1164.71%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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